Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
fractional.hpp File Reference

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Typedefs

template<typename Real>
using sw::universal::cfloat_remainder_t

Functions

template<typename Real>
Real sw::universal::cfloat_fmod_magnitude (Real r, Real ay, bool &quotientOdd)
template<typename Real>
Real sw::universal::cfloat_remainder_finite (const Real &x, const Real &y, bool nearest)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > sw::universal::cfloatmod (cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > x, cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > y)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > sw::universal::fmod (cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > x, cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > y)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > sw::universal::remainder (cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > x, cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > y)
template<unsigned nbits, unsigned es, typename bt, bool hasSubnormals, bool hasMaxExpValues, bool isSaturating>
cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > sw::universal::frac (cfloat< nbits, es, bt, hasSubnormals, hasMaxExpValues, isSaturating > x)