|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <limits>#include <algorithm>#include <cstdint>#include <universal/number/efloat/math/exponent.hpp>#include <universal/number/efloat/math/truncate.hpp>#include <universal/number/efloat/math/classify.hpp>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::efloat_detail |
| decimal formatting (binary -> decimal string at arbitrary precision) | |
Functions | |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::efloat_detail::times_power_of_2 (efloat< nlimbs > x, int64_t k) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::efloat_detail::integer_mod (const efloat< nlimbs > &a, const efloat< nlimbs > &m) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::efloat_detail::power_of_2_mod (int64_t d, const efloat< nlimbs > &m) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::efloat_detail::exact_mod (const efloat< nlimbs > &x, const efloat< nlimbs > &y) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::fmod (const efloat< nlimbs > &x, const efloat< nlimbs > &y) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::remainder (const efloat< nlimbs > &x, const efloat< nlimbs > &y) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::drem (const efloat< nlimbs > &x, const efloat< nlimbs > &y) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::frac (const efloat< nlimbs > &x) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::modf (const efloat< nlimbs > &x, efloat< nlimbs > *iptr) |
| template<unsigned nlimbs> | |
| constexpr efloat< nlimbs > | sw::universal::copysign (const efloat< nlimbs > &x, const efloat< nlimbs > &y) noexcept |