|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Functions | |
| constexpr double | pow2 (int n) |
| constexpr float | pow2f (int n) |
| constexpr int | floor_to_int (double x) |
| constexpr int | floor_to_int (float x) |
| constexpr bool | is_integer (double y) |
| constexpr bool | is_integer (float y) |
| constexpr bool | is_odd_integer (double y) |
| constexpr bool | is_odd_integer (float y) |
| template<typename T> | |
| constexpr T | pow_by_squaring (T base, unsigned long long exponent) |
Variables | |
| constexpr double | LOG2E = 1.4426950408889634 |
| constexpr double | LN2 = 0.6931471805599453 |
| constexpr double | SQRT2 = 1.4142135623730951 |
| constexpr double | LL_BOUND_DOUBLE = 9223372036854775808.0 |
| constexpr float | LL_BOUND_FLOAT = 0x1p63f |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |