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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::detail

Functions

template<unsigned es>
constexpr std::uint64_t sw::universal::useed ()
constexpr double sw::universal::detail::pow2_double (unsigned e)
template<unsigned nbits, unsigned es>
constexpr double sw::universal::useed ()
template<unsigned nbits, unsigned es>
constexpr double sw::universal::useed_value ()
template<unsigned nbits, unsigned es, typename bt>
blockbinary< nbits, bt, BinaryNumberType::Signed > sw::universal::minpos_pattern (bool sign=false)
template<unsigned nbits, unsigned es, typename bt>
blockbinary< nbits, bt, BinaryNumberType::Signed > sw::universal::maxpos_pattern (bool sign=false)
template<unsigned nbits, unsigned es, typename bt>
posit< nbits, es, bt > sw::universal::maxprecision_max ()
template<unsigned nbits, unsigned es, typename bt>
posit< nbits, es, bt > sw::universal::maxprecision_min ()
template<unsigned nbits, unsigned es, typename bt>
constexpr int sw::universal::calculate_k (int scale)
template<unsigned nbits, unsigned es, typename bt>
constexpr int sw::universal::calculate_unconstrained_k (int scale)
template<unsigned nbits, unsigned es, typename bt>
constexpr int sw::universal::sign_value (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
long double sw::universal::regime_value (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
long double sw::universal::exponent_value (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
long double sw::universal::fraction_value (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
constexpr bool sw::universal::sign (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
int sw::universal::scale (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt, unsigned fbits = posit<nbits, es, bt>::fbits>
blockbinary< fbits+1, bt, BinaryNumberType::Unsigned > sw::universal::significant (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt, unsigned fbits = posit<nbits, es, bt>::fbits>
blockbinary< fbits, bt > sw::universal::extract_fraction (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
int sw::universal::regime_scale (const posit< nbits, es, bt > &p)
template<unsigned nbits, unsigned es, typename bt>
int sw::universal::exponent_scale (const posit< nbits, es, bt > &p)