Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
sw::universal::ereal< maxlimbs, FpType > Class Template Reference

#include <ereal_impl.hpp>

Public Types

using limb_type = FpType

Public Member Functions

constexpr ereal ()
constexpr ereal (const ereal &)=default
constexpr ereal (ereal &&)=default
constexpr ereal & operator= (const ereal &)=default
constexpr ereal & operator= (ereal &&)=default
 ereal (signed char iv) noexcept
 ereal (short iv) noexcept
 ereal (int iv) noexcept
 ereal (long iv) noexcept
 ereal (long long iv) noexcept
 ereal (char iv) noexcept
 ereal (unsigned short iv) noexcept
 ereal (unsigned int iv) noexcept
 ereal (unsigned long iv) noexcept
 ereal (unsigned long long iv) noexcept
 ereal (float iv) noexcept
 ereal (double iv) noexcept
 ereal (const std::string &str)
 ereal (const SpecificValue code) noexcept
ereal & operator= (signed char rhs) noexcept
ereal & operator= (short rhs) noexcept
ereal & operator= (int rhs) noexcept
ereal & operator= (long rhs) noexcept
ereal & operator= (long long rhs) noexcept
ereal & operator= (char rhs) noexcept
ereal & operator= (unsigned short rhs) noexcept
ereal & operator= (unsigned int rhs) noexcept
ereal & operator= (unsigned long rhs) noexcept
ereal & operator= (unsigned long long rhs) noexcept
ereal & operator= (float rhs) noexcept
ereal & operator= (double rhs) noexcept
 operator float () const noexcept
 operator double () const noexcept
template<typename Limb, std::enable_if_t< std::is_same_v< Limb, FpType > &&!std::is_same_v< Limb, float > &&!std::is_same_v< Limb, double >, int > = 0>
 ereal (Limb iv) noexcept
template<typename Limb, std::enable_if_t< std::is_same_v< Limb, FpType > &&!std::is_same_v< Limb, float > &&!std::is_same_v< Limb, double >, int > = 0>
ereal & operator= (Limb rhs) noexcept
template<typename Limb, std::enable_if_t< std::is_same_v< Limb, FpType > &&!std::is_same_v< Limb, float > &&!std::is_same_v< Limb, double >, int > = 0>
 operator Limb () const noexcept
constexpr FpType operator[] (size_t i) const noexcept
constexpr FpType & operator[] (size_t i)
ereal operator- () const
ereal & operator+= (const ereal &rhs)
ereal & operator+= (double rhs)
ereal & operator-= (const ereal &rhs)
ereal & operator-= (double rhs)
ereal & operator*= (const ereal &rhs)
ereal & operator*= (double rhs)
ereal & operator/= (const ereal &rhs)
ereal & operator/= (double rhs)
void clear ()
void setzero ()
void setnan ()
void setinf (bool sign=false)
ereal & maxpos ()
ereal & minpos ()
ereal & minneg ()
ereal & maxneg ()
bool parse (const std::string &str)
ereal & assign (const std::string &txt)
std::string to_string (std::streamsize precision=7, std::streamsize width=15, bool fixed=false, bool scientific=true, bool internal=false, bool left=false, bool showpos=false, bool uppercase=false, char fill=' ') const
constexpr bool iszero () const noexcept
constexpr bool isone () const noexcept
constexpr bool ispos () const noexcept
constexpr bool isneg () const noexcept
bool isinf () const noexcept
bool isnan () const noexcept
bool signbit () const noexcept
constexpr int sign () const noexcept
int64_t scale () const noexcept
constexpr FpType significant () const noexcept
constexpr const std::vector< FpType > & limbs () const noexcept

Static Public Member Functions

static constexpr int reciprocal_iterations ()
static void enforce_limb_budget (std::vector< FpType > &limbs)

Static Public Attributes

static constexpr unsigned maxNrLimbs = maxlimbs
static constexpr int EXP_BIAS = std::numeric_limits<FpType>::max_exponent - 1
static constexpr int MAX_EXP = std::numeric_limits<FpType>::max_exponent
static constexpr int MIN_EXP_NORMAL = std::numeric_limits<FpType>::min_exponent - 1
static constexpr int MIN_EXP_SUBNORMAL = 1 - EXP_BIAS - static_cast<int>(std::numeric_limits<FpType>::digits * maxlimbs)
static constexpr unsigned max_safe_limbs
static constexpr unsigned digits10_per_limb = static_cast<unsigned>(std::numeric_limits<FpType>::digits10) + 1u
static constexpr int max_exponent10 = std::numeric_limits<FpType>::max_exponent10
static constexpr bool bTraceDecimalConversion = false
static constexpr bool bTraceDecimalRounding = false
static constexpr unsigned limb_budget

Protected Member Functions

bool apply_ieee754_add_special_values (const ereal &rhs)
bool apply_ieee754_mul_special_values (const ereal &rhs)
bool apply_ieee754_div_special_values (const ereal &rhs)
template<typename SignedInt, typename = typename std::enable_if< std::is_integral<SignedInt>::value, SignedInt >::type>
ereal & convert_signed (SignedInt v) noexcept
template<typename UnsignedInt, typename = typename std::enable_if< std::is_integral<UnsignedInt>::value, UnsignedInt >::type>
ereal & convert_unsigned (UnsignedInt v) noexcept
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
ereal & convert_ieee754 (Real rhs) noexcept
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
Real convert_to_ieee754 () const noexcept
void to_digits (std::vector< char > &s, int &exponent, int precision) const
void round_string (std::vector< char > &s, int precision, int *decimalPoint) const
void append_exponent (std::string &str, int e) const

Protected Attributes

std::vector< FpType > _limb

Friends

template<unsigned nnlimbs, typename FFpType>
signed findMsb (const ereal< nnlimbs, FFpType > &v)

Member Typedef Documentation

◆ limb_type

template<unsigned maxlimbs = 8, typename FpType = double>
using sw::universal::ereal< maxlimbs, FpType >::limb_type = FpType

Constructor & Destructor Documentation

◆ ereal() [1/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( )
inlineconstexpr

◆ ereal() [2/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( const ereal< maxlimbs, FpType > & )
constexprdefault

◆ ereal() [3/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( ereal< maxlimbs, FpType > && )
constexprdefault

◆ ereal() [4/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( signed char iv)
inlinenoexcept

◆ ereal() [5/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( short iv)
inlinenoexcept

◆ ereal() [6/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( int iv)
inlinenoexcept

◆ ereal() [7/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( long iv)
inlinenoexcept

◆ ereal() [8/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( long long iv)
inlinenoexcept

◆ ereal() [9/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( char iv)
inlinenoexcept

◆ ereal() [10/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( unsigned short iv)
inlinenoexcept

◆ ereal() [11/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( unsigned int iv)
inlinenoexcept

◆ ereal() [12/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( unsigned long iv)
inlinenoexcept

◆ ereal() [13/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( unsigned long long iv)
inlinenoexcept

◆ ereal() [14/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( float iv)
inlinenoexcept

◆ ereal() [15/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( double iv)
inlinenoexcept

◆ ereal() [16/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( const std::string & str)
inline

◆ ereal() [17/18]

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::ereal ( const SpecificValue code)
inlinenoexcept

◆ ereal() [18/18]

template<unsigned maxlimbs = 8, typename FpType = double>
template<typename Limb, std::enable_if_t< std::is_same_v< Limb, FpType > &&!std::is_same_v< Limb, float > &&!std::is_same_v< Limb, double >, int > = 0>
sw::universal::ereal< maxlimbs, FpType >::ereal ( Limb iv)
inlinenoexcept

Member Function Documentation

◆ append_exponent()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::append_exponent ( std::string & str,
int e ) const
inlineprotected

◆ apply_ieee754_add_special_values()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::apply_ieee754_add_special_values ( const ereal< maxlimbs, FpType > & rhs)
inlineprotected

◆ apply_ieee754_div_special_values()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::apply_ieee754_div_special_values ( const ereal< maxlimbs, FpType > & rhs)
inlineprotected

◆ apply_ieee754_mul_special_values()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::apply_ieee754_mul_special_values ( const ereal< maxlimbs, FpType > & rhs)
inlineprotected

◆ assign()

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::assign ( const std::string & txt)
inline

◆ clear()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::clear ( )
inline

◆ convert_ieee754()

template<unsigned maxlimbs = 8, typename FpType = double>
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
ereal & sw::universal::ereal< maxlimbs, FpType >::convert_ieee754 ( Real rhs)
inlineprotectednoexcept

◆ convert_signed()

template<unsigned maxlimbs = 8, typename FpType = double>
template<typename SignedInt, typename = typename std::enable_if< std::is_integral<SignedInt>::value, SignedInt >::type>
ereal & sw::universal::ereal< maxlimbs, FpType >::convert_signed ( SignedInt v)
inlineprotectednoexcept

◆ convert_to_ieee754()

template<unsigned maxlimbs = 8, typename FpType = double>
template<typename Real, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
Real sw::universal::ereal< maxlimbs, FpType >::convert_to_ieee754 ( ) const
inlineprotectednoexcept

◆ convert_unsigned()

template<unsigned maxlimbs = 8, typename FpType = double>
template<typename UnsignedInt, typename = typename std::enable_if< std::is_integral<UnsignedInt>::value, UnsignedInt >::type>
ereal & sw::universal::ereal< maxlimbs, FpType >::convert_unsigned ( UnsignedInt v)
inlineprotectednoexcept

◆ enforce_limb_budget()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::enforce_limb_budget ( std::vector< FpType > & limbs)
inlinestatic

◆ isinf()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::isinf ( ) const
inlinenoexcept

◆ isnan()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::isnan ( ) const
inlinenoexcept

◆ isneg()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::isneg ( ) const
inlineconstexprnoexcept

◆ isone()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::isone ( ) const
inlineconstexprnoexcept

◆ ispos()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::ispos ( ) const
inlineconstexprnoexcept

◆ iszero()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::iszero ( ) const
inlineconstexprnoexcept

◆ limbs()

template<unsigned maxlimbs = 8, typename FpType = double>
const std::vector< FpType > & sw::universal::ereal< maxlimbs, FpType >::limbs ( ) const
inlineconstexprnoexcept

◆ maxneg()

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::maxneg ( )
inline

◆ maxpos()

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::maxpos ( )
inline

◆ minneg()

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::minneg ( )
inline

◆ minpos()

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::minpos ( )
inline

◆ operator double()

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::operator double ( ) const
inlineexplicitnoexcept

◆ operator float()

template<unsigned maxlimbs = 8, typename FpType = double>
sw::universal::ereal< maxlimbs, FpType >::operator float ( ) const
inlineexplicitnoexcept

◆ operator Limb()

template<unsigned maxlimbs = 8, typename FpType = double>
template<typename Limb, std::enable_if_t< std::is_same_v< Limb, FpType > &&!std::is_same_v< Limb, float > &&!std::is_same_v< Limb, double >, int > = 0>
sw::universal::ereal< maxlimbs, FpType >::operator Limb ( ) const
inlineexplicitnoexcept

◆ operator*=() [1/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator*= ( const ereal< maxlimbs, FpType > & rhs)
inline

◆ operator*=() [2/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator*= ( double rhs)
inline

◆ operator+=() [1/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator+= ( const ereal< maxlimbs, FpType > & rhs)
inline

◆ operator+=() [2/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator+= ( double rhs)
inline

◆ operator-()

template<unsigned maxlimbs = 8, typename FpType = double>
ereal sw::universal::ereal< maxlimbs, FpType >::operator- ( ) const
inline

◆ operator-=() [1/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator-= ( const ereal< maxlimbs, FpType > & rhs)
inline

◆ operator-=() [2/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator-= ( double rhs)
inline

◆ operator/=() [1/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator/= ( const ereal< maxlimbs, FpType > & rhs)
inline

◆ operator/=() [2/2]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator/= ( double rhs)
inline

◆ operator=() [1/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( char rhs)
inlinenoexcept

◆ operator=() [2/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( const ereal< maxlimbs, FpType > & )
constexprdefault

◆ operator=() [3/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( double rhs)
inlinenoexcept

◆ operator=() [4/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( ereal< maxlimbs, FpType > && )
constexprdefault

◆ operator=() [5/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( float rhs)
inlinenoexcept

◆ operator=() [6/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( int rhs)
inlinenoexcept

◆ operator=() [7/15]

template<unsigned maxlimbs = 8, typename FpType = double>
template<typename Limb, std::enable_if_t< std::is_same_v< Limb, FpType > &&!std::is_same_v< Limb, float > &&!std::is_same_v< Limb, double >, int > = 0>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( Limb rhs)
inlinenoexcept

◆ operator=() [8/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( long long rhs)
inlinenoexcept

◆ operator=() [9/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( long rhs)
inlinenoexcept

◆ operator=() [10/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( short rhs)
inlinenoexcept

◆ operator=() [11/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( signed char rhs)
inlinenoexcept

◆ operator=() [12/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( unsigned int rhs)
inlinenoexcept

◆ operator=() [13/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( unsigned long long rhs)
inlinenoexcept

◆ operator=() [14/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( unsigned long rhs)
inlinenoexcept

◆ operator=() [15/15]

template<unsigned maxlimbs = 8, typename FpType = double>
ereal & sw::universal::ereal< maxlimbs, FpType >::operator= ( unsigned short rhs)
inlinenoexcept

◆ operator[]() [1/2]

template<unsigned maxlimbs = 8, typename FpType = double>
FpType & sw::universal::ereal< maxlimbs, FpType >::operator[] ( size_t i)
inlineconstexpr

◆ operator[]() [2/2]

template<unsigned maxlimbs = 8, typename FpType = double>
FpType sw::universal::ereal< maxlimbs, FpType >::operator[] ( size_t i) const
inlineconstexprnoexcept

◆ parse()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::parse ( const std::string & str)
inline

◆ reciprocal_iterations()

template<unsigned maxlimbs = 8, typename FpType = double>
constexpr int sw::universal::ereal< maxlimbs, FpType >::reciprocal_iterations ( )
inlinestaticconstexpr

◆ round_string()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::round_string ( std::vector< char > & s,
int precision,
int * decimalPoint ) const
inlineprotected

◆ scale()

template<unsigned maxlimbs = 8, typename FpType = double>
int64_t sw::universal::ereal< maxlimbs, FpType >::scale ( ) const
inlinenoexcept

◆ setinf()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::setinf ( bool sign = false)
inline

◆ setnan()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::setnan ( )
inline

◆ setzero()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::setzero ( )
inline

◆ sign()

template<unsigned maxlimbs = 8, typename FpType = double>
int sw::universal::ereal< maxlimbs, FpType >::sign ( ) const
inlineconstexprnoexcept

◆ signbit()

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::signbit ( ) const
inlinenoexcept

◆ significant()

template<unsigned maxlimbs = 8, typename FpType = double>
FpType sw::universal::ereal< maxlimbs, FpType >::significant ( ) const
inlineconstexprnoexcept

◆ to_digits()

template<unsigned maxlimbs = 8, typename FpType = double>
void sw::universal::ereal< maxlimbs, FpType >::to_digits ( std::vector< char > & s,
int & exponent,
int precision ) const
inlineprotected

◆ to_string()

template<unsigned maxlimbs = 8, typename FpType = double>
std::string sw::universal::ereal< maxlimbs, FpType >::to_string ( std::streamsize precision = 7,
std::streamsize width = 15,
bool fixed = false,
bool scientific = true,
bool internal = false,
bool left = false,
bool showpos = false,
bool uppercase = false,
char fill = ' ' ) const
inline

◆ findMsb

template<unsigned maxlimbs = 8, typename FpType = double>
template<unsigned nnlimbs, typename FFpType>
signed findMsb ( const ereal< nnlimbs, FFpType > & v)
friend

Member Data Documentation

◆ _limb

template<unsigned maxlimbs = 8, typename FpType = double>
std::vector<FpType> sw::universal::ereal< maxlimbs, FpType >::_limb
protected

◆ bTraceDecimalConversion

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::bTraceDecimalConversion = false
staticconstexpr

◆ bTraceDecimalRounding

template<unsigned maxlimbs = 8, typename FpType = double>
bool sw::universal::ereal< maxlimbs, FpType >::bTraceDecimalRounding = false
staticconstexpr

◆ digits10_per_limb

template<unsigned maxlimbs = 8, typename FpType = double>
unsigned sw::universal::ereal< maxlimbs, FpType >::digits10_per_limb = static_cast<unsigned>(std::numeric_limits<FpType>::digits10) + 1u
staticconstexpr

◆ EXP_BIAS

template<unsigned maxlimbs = 8, typename FpType = double>
int sw::universal::ereal< maxlimbs, FpType >::EXP_BIAS = std::numeric_limits<FpType>::max_exponent - 1
staticconstexpr

◆ limb_budget

template<unsigned maxlimbs = 8, typename FpType = double>
unsigned sw::universal::ereal< maxlimbs, FpType >::limb_budget
staticconstexpr
Initial value:
=
(2 * maxlimbs < max_safe_limbs) ? 2 * maxlimbs : max_safe_limbs
static constexpr unsigned max_safe_limbs
Definition ereal_impl.hpp:111

◆ MAX_EXP

template<unsigned maxlimbs = 8, typename FpType = double>
int sw::universal::ereal< maxlimbs, FpType >::MAX_EXP = std::numeric_limits<FpType>::max_exponent
staticconstexpr

◆ max_exponent10

template<unsigned maxlimbs = 8, typename FpType = double>
int sw::universal::ereal< maxlimbs, FpType >::max_exponent10 = std::numeric_limits<FpType>::max_exponent10
staticconstexpr

◆ max_safe_limbs

template<unsigned maxlimbs = 8, typename FpType = double>
unsigned sw::universal::ereal< maxlimbs, FpType >::max_safe_limbs
staticconstexpr
Initial value:
=
static_cast<unsigned>((-(std::numeric_limits<FpType>::min_exponent - 1)) / std::numeric_limits<FpType>::digits)

◆ maxNrLimbs

template<unsigned maxlimbs = 8, typename FpType = double>
unsigned sw::universal::ereal< maxlimbs, FpType >::maxNrLimbs = maxlimbs
staticconstexpr

◆ MIN_EXP_NORMAL

template<unsigned maxlimbs = 8, typename FpType = double>
int sw::universal::ereal< maxlimbs, FpType >::MIN_EXP_NORMAL = std::numeric_limits<FpType>::min_exponent - 1
staticconstexpr

◆ MIN_EXP_SUBNORMAL

template<unsigned maxlimbs = 8, typename FpType = double>
int sw::universal::ereal< maxlimbs, FpType >::MIN_EXP_SUBNORMAL = 1 - EXP_BIAS - static_cast<int>(std::numeric_limits<FpType>::digits * maxlimbs)
staticconstexpr

The documentation for this class was generated from the following files:
  • /home/runner/work/universal/universal/include/sw/universal/number/ereal/ereal_fwd.hpp
  • /home/runner/work/universal/universal/include/sw/universal/number/ereal/ereal_impl.hpp