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 <cmath>
#include <limits>
#include <vector>
#include <universal/internal/expansion/expansion_ops.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::ereal_detail

Functions

template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::ereal_detail::remainder_by_zero ()
template<unsigned maxlimbs, typename FpType>
std::vector< FpType > sw::universal::ereal_detail::exact_remainder_expansion (const ereal< maxlimbs, FpType > &a, const ereal< maxlimbs, FpType > &b, bool &odd)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::ereal_detail::from_expansion (std::vector< FpType > e)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::ereal_detail::exact_remainder (const ereal< maxlimbs, FpType > &a, const ereal< maxlimbs, FpType > &b, bool &odd)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::fmod (const ereal< maxlimbs, FpType > &x, const ereal< maxlimbs, FpType > &y)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::remainder (const ereal< maxlimbs, FpType > &x, const ereal< maxlimbs, FpType > &y)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::modf (const ereal< maxlimbs, FpType > &x, ereal< maxlimbs, FpType > *iptr)