Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
efloat_bridge.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <universal/number/efloat/core.hpp>
#include <universal/number/efloat/mathlib.hpp>

Classes

class  sw::universal::cfloat_math::efloat_environment_guard

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::cfloat_math

Typedefs

template<typename Cfloat>
using sw::universal::cfloat_math::efloat_for = efloat<static_cast<unsigned>(2u * significand_limbs<Cfloat>() + 2u)>

Functions

template<typename Cfloat>
constexpr bool sw::universal::cfloat_math::range_fits_double ()
template<typename Cfloat>
constexpr bool sw::universal::cfloat_math::fits_double ()
template<typename Cfloat>
constexpr std::size_t sw::universal::cfloat_math::significand_limbs ()
template<unsigned nbits, unsigned es, typename bt, bool sub, bool sup, bool sat>
efloat_for< cfloat< nbits, es, bt, sub, sup, sat > > sw::universal::cfloat_math::to_efloat (const cfloat< nbits, es, bt, sub, sup, sat > &x)
template<unsigned nbits, unsigned es, typename bt, bool sub, bool sup, bool sat, unsigned nlimbs>
cfloat< nbits, es, bt, sub, sup, sat > & sw::universal::cfloat_math::from_efloat (cfloat< nbits, es, bt, sub, sup, sat > &r, const efloat< nlimbs > &v)
template<typename Cfloat, typename Function>
Cfloat sw::universal::cfloat_math::evaluate (Function &&f)
template<unsigned nbits, unsigned es, typename bt, bool sub, bool sup, bool sat>
efloat_for< cfloat< nbits, es, bt, sub, sup, sat > > sw::universal::cfloat_math::argument (const cfloat< nbits, es, bt, sub, sup, sat > &x, unsigned W)
template<typename Cfloat, typename Function>
Cfloat sw::universal::cfloat_math::unary (const Cfloat &x, Function &&f, bool oddAtZero)
template<typename Cfloat>
efloat_for< Cfloat > sw::universal::cfloat_math::argument_from (double v, unsigned W)