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::hfloat_detail::wide< capacity > Struct Template Reference

#include <hfloat_fraction.hpp>

Public Member Functions

constexpr wide () noexcept
template<unsigned other>
constexpr wide< other > resize () const noexcept
constexpr void clear () noexcept
constexpr bool iszero () const noexcept
constexpr bool test (unsigned i) const noexcept
constexpr void set (unsigned i) noexcept
constexpr int msb () const noexcept
constexpr void truncate (unsigned n) noexcept
constexpr bool shr (unsigned n) noexcept
constexpr void shl (unsigned n) noexcept
constexpr void add (const wide &b) noexcept
constexpr void sub (const wide &b) noexcept
constexpr void decrement () noexcept
constexpr int compare (const wide &b) const noexcept
constexpr std::uint64_t low64 () const noexcept
constexpr unsigned significant_limbs () const noexcept

Static Public Member Functions

static constexpr wide from_u64 (std::uint64_t v) noexcept

Public Attributes

std::uint32_t w [L]

Static Public Attributes

static constexpr unsigned L = (capacity + 31u) / 32u

Constructor & Destructor Documentation

◆ wide()

template<unsigned capacity>
sw::universal::hfloat_detail::wide< capacity >::wide ( )
inlineconstexprnoexcept

Member Function Documentation

◆ add()

template<unsigned capacity>
void sw::universal::hfloat_detail::wide< capacity >::add ( const wide< capacity > & b)
inlineconstexprnoexcept

◆ clear()

template<unsigned capacity>
void sw::universal::hfloat_detail::wide< capacity >::clear ( )
inlineconstexprnoexcept

◆ compare()

template<unsigned capacity>
int sw::universal::hfloat_detail::wide< capacity >::compare ( const wide< capacity > & b) const
inlineconstexprnoexcept

◆ decrement()

template<unsigned capacity>
void sw::universal::hfloat_detail::wide< capacity >::decrement ( )
inlineconstexprnoexcept

◆ from_u64()

template<unsigned capacity>
constexpr wide sw::universal::hfloat_detail::wide< capacity >::from_u64 ( std::uint64_t v)
inlinestaticconstexprnoexcept

◆ iszero()

template<unsigned capacity>
bool sw::universal::hfloat_detail::wide< capacity >::iszero ( ) const
inlineconstexprnoexcept

◆ low64()

template<unsigned capacity>
std::uint64_t sw::universal::hfloat_detail::wide< capacity >::low64 ( ) const
inlineconstexprnoexcept

◆ msb()

template<unsigned capacity>
int sw::universal::hfloat_detail::wide< capacity >::msb ( ) const
inlineconstexprnoexcept

◆ resize()

template<unsigned capacity>
template<unsigned other>
wide< other > sw::universal::hfloat_detail::wide< capacity >::resize ( ) const
inlineconstexprnoexcept

◆ set()

template<unsigned capacity>
void sw::universal::hfloat_detail::wide< capacity >::set ( unsigned i)
inlineconstexprnoexcept

◆ shl()

template<unsigned capacity>
void sw::universal::hfloat_detail::wide< capacity >::shl ( unsigned n)
inlineconstexprnoexcept

◆ shr()

template<unsigned capacity>
bool sw::universal::hfloat_detail::wide< capacity >::shr ( unsigned n)
inlineconstexprnoexcept

◆ significant_limbs()

template<unsigned capacity>
unsigned sw::universal::hfloat_detail::wide< capacity >::significant_limbs ( ) const
inlineconstexprnoexcept

◆ sub()

template<unsigned capacity>
void sw::universal::hfloat_detail::wide< capacity >::sub ( const wide< capacity > & b)
inlineconstexprnoexcept

◆ test()

template<unsigned capacity>
bool sw::universal::hfloat_detail::wide< capacity >::test ( unsigned i) const
inlineconstexprnoexcept

◆ truncate()

template<unsigned capacity>
void sw::universal::hfloat_detail::wide< capacity >::truncate ( unsigned n)
inlineconstexprnoexcept

Member Data Documentation

◆ L

template<unsigned capacity>
unsigned sw::universal::hfloat_detail::wide< capacity >::L = (capacity + 31u) / 32u
staticconstexpr

◆ w

template<unsigned capacity>
std::uint32_t sw::universal::hfloat_detail::wide< capacity >::w[L]

The documentation for this struct was generated from the following file: