Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
detail.hpp File Reference
#include <bit>
#include <cstdint>
#include <limits>

Namespaces

namespace  sw
 required std libraries
namespace  sw::math
namespace  sw::math::constexpr_math
namespace  sw::math::constexpr_math::detail

Functions

constexpr double sw::math::constexpr_math::detail::pow2 (int n)
constexpr float sw::math::constexpr_math::detail::pow2f (int n)
constexpr int sw::math::constexpr_math::detail::floor_to_int (double x)
constexpr int sw::math::constexpr_math::detail::floor_to_int (float x)
constexpr bool sw::math::constexpr_math::detail::is_integer (double y)
constexpr bool sw::math::constexpr_math::detail::is_integer (float y)
constexpr bool sw::math::constexpr_math::detail::is_odd_integer (double y)
constexpr bool sw::math::constexpr_math::detail::is_odd_integer (float y)
template<typename T>
constexpr T sw::math::constexpr_math::detail::pow_by_squaring (T base, unsigned long long exponent)

Variables

constexpr double sw::math::constexpr_math::detail::LOG2E = 1.4426950408889634
constexpr double sw::math::constexpr_math::detail::LN2 = 0.6931471805599453
constexpr double sw::math::constexpr_math::detail::SQRT2 = 1.4142135623730951
constexpr double sw::math::constexpr_math::detail::LL_BOUND_DOUBLE = 9223372036854775808.0
constexpr float sw::math::constexpr_math::detail::LL_BOUND_FLOAT = 0x1p63f