Gromacs
2020.4
|
#include "gmxpre.h"
#include "functions.h"
#include "config.h"
#include <cstdint>
#include <array>
#include <limits>
#include "gromacs/math/utilities.h"
#include "gromacs/utility/gmxassert.h"
Implements simple math functions.
Functions | |
unsigned int | gmx::log2I (std::uint32_t x) |
Compute floor of logarithm to base 2, 32 bit unsigned argument. More... | |
unsigned int | gmx::log2I (std::uint64_t x) |
Compute floor of logarithm to base 2, 64 bit unsigned argument. More... | |
unsigned int | gmx::log2I (std::int32_t x) |
Compute floor of logarithm to base 2, 32 bit signed argument. More... | |
unsigned int | gmx::log2I (std::int64_t x) |
Compute floor of logarithm to base 2, 64 bit signed argument. More... | |
std::int64_t | gmx::greatestCommonDivisor (std::int64_t p, std::int64_t q) |
Find greatest common divisor of two numbers. More... | |
double | gmx::erfinv (double x) |
Inverse error function, double precision. More... | |
float | gmx::erfinv (float x) |
Inverse error function, single precision. More... | |