|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <algorithm>#include <limits>#include <type_traits>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Functions | |
| template<typename Limbs> | |
| constexpr bool | sw::universal::significand_bit (const Limbs &limbs, int64_t i) noexcept |
| template<typename Limbs> | |
| constexpr bool | sw::universal::significand_bits_from (const Limbs &limbs, int64_t first) noexcept |
| template<typename Limbs> | |
| constexpr bool | sw::universal::clear_fractional_limbs (Limbs &limbs, int64_t exp) noexcept |
| template<typename Limbs> | |
| constexpr bool | sw::universal::add_one_integer_magnitude (Limbs &limbs, int64_t exp) noexcept |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::trunc (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::floor (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::ceil (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::round (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::rint (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::nearbyint (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr long long | sw::universal::llrint_impl (const efloat< nlimbs > &x) noexcept |
| template<unsigned nlimbs> | |
| constexpr long | sw::universal::lrint (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr long long | sw::universal::llrint (const efloat< nlimbs > &x) |