|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cmath>#include <cstdint>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::multidouble_reduction |
Functions | |
| std::uint64_t | sw::universal::multidouble_reduction::two_over_pi_window (int j) |
| void | sw::universal::multidouble_reduction::mul64 (std::uint64_t a, std::uint64_t b, std::uint64_t &hi, std::uint64_t &lo) |
| void | sw::universal::multidouble_reduction::accumulate (std::uint64_t(&A)[WORDS], double limb) |
| template<typename Real, int N> | |
| int | sw::universal::multidouble_reduction::reduce_pio2 (const double(&limbs)[N], const Real &pi_2, Real &t) |
| a = (j + 4n) pi/2 + t with |t| <= pi/4, for the finite value a = sum of the limbs | |
Variables | |
| constexpr std::uint64_t | sw::universal::multidouble_reduction::two_over_pi_bits [28] |
| constexpr int | sw::universal::multidouble_reduction::FRAC = 640 |
| constexpr int | sw::universal::multidouble_reduction::WORDS = 11 |
| constexpr int | sw::universal::multidouble_reduction::WIN = 11 |