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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::ldexp (const ereal< maxlimbs, FpType > &x, int exp)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::frexp (const ereal< maxlimbs, FpType > &x, int *exp)
template<unsigned maxlimbs, typename FpType>
constexpr int sw::universal::series_precision_bits ()
template<unsigned maxlimbs, typename FpType>
bool sw::universal::series_converged (const ereal< maxlimbs, FpType > &term, const ereal< maxlimbs, FpType > &sum, int bits)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::copysign (const ereal< maxlimbs, FpType > &x, const ereal< maxlimbs, FpType > &y)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::scalbn (const ereal< maxlimbs, FpType > &x, int n)
template<unsigned maxlimbs, typename FpType>
int sw::universal::ilogb (const ereal< maxlimbs, FpType > &x)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::logb (const ereal< maxlimbs, FpType > &x)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::fma (const ereal< maxlimbs, FpType > &x, const ereal< maxlimbs, FpType > &y, const ereal< maxlimbs, FpType > &z)