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
#include <algorithm>
#include <cstdint>
#include <universal/number/lindex/math/value_domain.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::lindex_math

Functions

template<typename L>
exact_float sw::universal::lindex_math::fmod_magnitude (std::uint64_t a, std::uint64_t b, unsigned bits, unsigned scale_x, bool &n_odd)
const level_index::point< qd_cascade > & sw::universal::lindex_math::psi_of_two ()
template<typename L>
unsigned sw::universal::lindex_math::value_scale_of (std::uint64_t mag) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::fmod (const lindex< nbits, lbits, bt > &x, const lindex< nbits, lbits, bt > &y)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::remainder (const lindex< nbits, lbits, bt > &x, const lindex< nbits, lbits, bt > &y)