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::quire< NumberType, capacity, LimbType > Class Template Reference

#include <quire_impl.hpp>

Public Types

using Traits = quire_traits<NumberType>
using accumulator_type = blockbinary<qbits, LimbType, BinaryNumberType::Unsigned>

Public Member Functions

 quire ()
 quire (int8_t iv)
 quire (int16_t iv)
 quire (int32_t iv)
 quire (int64_t iv)
 quire (uint8_t iv)
 quire (uint16_t iv)
 quire (uint32_t iv)
 quire (uint64_t iv)
 quire (float iv)
 quire (double iv)
template<unsigned fbits, BlockTripleOperator op, typename bt>
 quire (const blocktriple< fbits, op, bt > &rhs)
constexpr quire (const SpecificValue code) noexcept
template<unsigned fbits, BlockTripleOperator op, typename bt>
quire & operator= (const blocktriple< fbits, op, bt > &rhs)
template<typename T = NumberType, std::enable_if_t<!std::is_arithmetic_v< T >, int > = 0>
quire & operator= (const T &rhs)
quire & operator= (int8_t rhs)
quire & operator= (int16_t rhs)
quire & operator= (int32_t rhs)
quire & operator= (int64_t rhs)
quire & operator= (uint8_t rhs)
quire & operator= (uint16_t rhs)
quire & operator= (uint32_t rhs)
quire & operator= (uint64_t rhs)
quire & operator= (float rhs)
quire & operator= (double rhs)
template<unsigned fbits, BlockTripleOperator op, typename bt>
quire & operator+= (const blocktriple< fbits, op, bt > &rhs)
 Add a blocktriple value to the quire.
template<typename T = NumberType, std::enable_if_t<!std::is_arithmetic_v< T >, int > = 0>
quire & operator+= (const T &rhs)
template<unsigned fbits, BlockTripleOperator op, typename bt>
quire & operator-= (const blocktriple< fbits, op, bt > &rhs)
 Subtract a blocktriple value from the quire.
template<typename T = NumberType, std::enable_if_t<!std::is_arithmetic_v< T >, int > = 0>
quire & operator-= (const T &rhs)
quire & operator+= (const quire &rhs)
 Add two quires.
quire & operator-= (const quire &rhs)
 Subtract two quires.
bool iszero () const noexcept
bool isoverflow () const noexcept
bool isnan () const noexcept
bool isinf () const noexcept
bool isnar () const noexcept
bool sign () const noexcept
bool isneg () const noexcept
bool ispos () const noexcept
int dynamic_range () const noexcept
int max_scale () const noexcept
int min_scale () const noexcept
int capacity_range () const noexcept
unsigned total_bits () const noexcept
int scale () const noexcept
 Find the scale (position of MSB relative to radix point).
bool operator[] (unsigned index) const
 Bit addressing: index 0 is at the bottom of the lower range.
bool testbit (unsigned index) const
bool anyAfter (unsigned index) const noexcept
 Check if any bit is set at or below the given index.
void reset () noexcept
void clear () noexcept
void set_sign (bool v) noexcept
void setnan () noexcept
void setinf (bool negative) noexcept
void setbit (unsigned index)
void zero () noexcept
void maxpos () noexcept
void minpos () noexcept
void minneg () noexcept
void maxneg () noexcept
blocktriple< qbits, BlockTripleOperator::REP, LimbType > to_blocktriple () const
 Convert quire value to a blocktriple<qbits, REP>.
template<typename TargetType>
TargetType convert_to () const
 Convert quire to a target number type.
const accumulator_type & accumulator () const noexcept
bool load_bits (const std::string &string_of_bits)
 Load from a bit string in format "+:cccc_uuuu.llll" Returns false (without modifying the quire) on malformed or oversized input.

Static Public Attributes

static constexpr unsigned range = Traits::range
static constexpr unsigned half_range = Traits::half_range
static constexpr unsigned radix_point = Traits::radix_point
static constexpr unsigned upper_range = Traits::upper_range
static constexpr unsigned qbits = range + capacity
static constexpr unsigned msb_index = qbits - 1
static constexpr int lowest_scale = -static_cast<int>(radix_point)
static constexpr int highest_scale = static_cast<int>(qbits) - 1 - static_cast<int>(radix_point)

Friends

template<typename NT, unsigned c, typename LT>
std::ostream & operator<< (std::ostream &ostr, const quire< NT, c, LT > &q)
template<typename NT, unsigned c, typename LT>
bool operator== (const quire< NT, c, LT > &lhs, const quire< NT, c, LT > &rhs)
template<typename NT, unsigned c, typename LT>
bool operator!= (const quire< NT, c, LT > &lhs, const quire< NT, c, LT > &rhs)
template<typename NT, unsigned c, typename LT>
bool operator< (const quire< NT, c, LT > &lhs, const quire< NT, c, LT > &rhs)
template<typename NT, unsigned c, typename LT>
bool operator> (const quire< NT, c, LT > &lhs, const quire< NT, c, LT > &rhs)
template<typename NT, unsigned c, typename LT>
bool operator<= (const quire< NT, c, LT > &lhs, const quire< NT, c, LT > &rhs)
template<typename NT, unsigned c, typename LT>
bool operator>= (const quire< NT, c, LT > &lhs, const quire< NT, c, LT > &rhs)
template<typename NT, unsigned c, typename LT>
quire< NT, c, LT > abs (const quire< NT, c, LT > &q)

Member Typedef Documentation

◆ accumulator_type

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
using sw::universal::quire< NumberType, capacity, LimbType >::accumulator_type = blockbinary<qbits, LimbType, BinaryNumberType::Unsigned>

◆ Traits

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
using sw::universal::quire< NumberType, capacity, LimbType >::Traits = quire_traits<NumberType>

Constructor & Destructor Documentation

◆ quire() [1/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( )
inline

◆ quire() [2/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( int8_t iv)
inline

◆ quire() [3/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( int16_t iv)
inline

◆ quire() [4/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( int32_t iv)
inline

◆ quire() [5/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( int64_t iv)
inline

◆ quire() [6/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( uint8_t iv)
inline

◆ quire() [7/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( uint16_t iv)
inline

◆ quire() [8/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( uint32_t iv)
inline

◆ quire() [9/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( uint64_t iv)
inline

◆ quire() [10/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( float iv)
inline

◆ quire() [11/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( double iv)
inline

◆ quire() [12/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<unsigned fbits, BlockTripleOperator op, typename bt>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( const blocktriple< fbits, op, bt > & rhs)
inline

◆ quire() [13/13]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
sw::universal::quire< NumberType, capacity, LimbType >::quire ( const SpecificValue code)
inlineconstexprnoexcept

Member Function Documentation

◆ accumulator()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
const accumulator_type & sw::universal::quire< NumberType, capacity, LimbType >::accumulator ( ) const
inlinenoexcept

◆ anyAfter()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::anyAfter ( unsigned index) const
inlinenoexcept

Check if any bit is set at or below the given index.

◆ capacity_range()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
int sw::universal::quire< NumberType, capacity, LimbType >::capacity_range ( ) const
inlinenoexcept

◆ clear()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::clear ( )
inlinenoexcept

◆ convert_to()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename TargetType>
TargetType sw::universal::quire< NumberType, capacity, LimbType >::convert_to ( ) const
inline

Convert quire to a target number type.

float and double are rounded to nearest, ties to even, once, from every bit of the accumulator: the leading 64 bits and a sticky bit for the rest; a value beyond the target's range overflows to +-inf, and one below it rounds through the subnormals (#2058). An integral target follows the integer-cast rule (#2104, shared/integer_cast.hpp): the value truncated toward zero; past the range, an infinity or an overflowed sum saturates to +-max() (unsigned: max() - 1, a negative value 0); NaN is the integer NaR (min(), unsigned max()). Another target of at most 8 bytes goes through double, rounded to odd, so the target's own rounding of it is correct; that needs at most 51 significand bits and a range inside double's (quire_converts_through_double_v), and any other target (cfloat<64,11>, posit<64,es>, posit<32,6>, cfloat<32,12>) does not compile: resolve it with its quire_resolve() or from to_blocktriple() (#2107).

◆ dynamic_range()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
int sw::universal::quire< NumberType, capacity, LimbType >::dynamic_range ( ) const
inlinenoexcept

◆ isinf()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::isinf ( ) const
inlinenoexcept

◆ isnan()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::isnan ( ) const
inlinenoexcept

◆ isnar()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::isnar ( ) const
inlinenoexcept

◆ isneg()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::isneg ( ) const
inlinenoexcept

◆ isoverflow()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::isoverflow ( ) const
inlinenoexcept

◆ ispos()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::ispos ( ) const
inlinenoexcept

◆ iszero()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::iszero ( ) const
inlinenoexcept

◆ load_bits()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::load_bits ( const std::string & string_of_bits)
inline

Load from a bit string in format "+:cccc_uuuu.llll" Returns false (without modifying the quire) on malformed or oversized input.

◆ max_scale()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
int sw::universal::quire< NumberType, capacity, LimbType >::max_scale ( ) const
inlinenoexcept

◆ maxneg()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::maxneg ( )
inlinenoexcept

◆ maxpos()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::maxpos ( )
inlinenoexcept

◆ min_scale()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
int sw::universal::quire< NumberType, capacity, LimbType >::min_scale ( ) const
inlinenoexcept

◆ minneg()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::minneg ( )
inlinenoexcept

◆ minpos()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::minpos ( )
inlinenoexcept

◆ operator+=() [1/3]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<unsigned fbits, BlockTripleOperator op, typename bt>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator+= ( const blocktriple< fbits, op, bt > & rhs)
inline

Add a blocktriple value to the quire.

◆ operator+=() [2/3]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator+= ( const quire< NumberType, capacity, LimbType > & rhs)
inline

Add two quires.

◆ operator+=() [3/3]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename T = NumberType, std::enable_if_t<!std::is_arithmetic_v< T >, int > = 0>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator+= ( const T & rhs)
inline

◆ operator-=() [1/3]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<unsigned fbits, BlockTripleOperator op, typename bt>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator-= ( const blocktriple< fbits, op, bt > & rhs)
inline

Subtract a blocktriple value from the quire.

◆ operator-=() [2/3]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator-= ( const quire< NumberType, capacity, LimbType > & rhs)
inline

Subtract two quires.

◆ operator-=() [3/3]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename T = NumberType, std::enable_if_t<!std::is_arithmetic_v< T >, int > = 0>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator-= ( const T & rhs)
inline

◆ operator=() [1/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<unsigned fbits, BlockTripleOperator op, typename bt>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( const blocktriple< fbits, op, bt > & rhs)
inline

◆ operator=() [2/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename T = NumberType, std::enable_if_t<!std::is_arithmetic_v< T >, int > = 0>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( const T & rhs)
inline

◆ operator=() [3/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( double rhs)
inline

◆ operator=() [4/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( float rhs)
inline

◆ operator=() [5/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( int16_t rhs)
inline

◆ operator=() [6/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( int32_t rhs)
inline

◆ operator=() [7/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( int64_t rhs)
inline

◆ operator=() [8/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( int8_t rhs)
inline

◆ operator=() [9/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( uint16_t rhs)
inline

◆ operator=() [10/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( uint32_t rhs)
inline

◆ operator=() [11/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( uint64_t rhs)
inline

◆ operator=() [12/12]

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
quire & sw::universal::quire< NumberType, capacity, LimbType >::operator= ( uint8_t rhs)
inline

◆ operator[]()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::operator[] ( unsigned index) const
inline

Bit addressing: index 0 is at the bottom of the lower range.

◆ reset()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::reset ( )
inlinenoexcept

◆ scale()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
int sw::universal::quire< NumberType, capacity, LimbType >::scale ( ) const
inlinenoexcept

Find the scale (position of MSB relative to radix point).

◆ set_sign()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::set_sign ( bool v)
inlinenoexcept

◆ setbit()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::setbit ( unsigned index)
inline

◆ setinf()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::setinf ( bool negative)
inlinenoexcept

◆ setnan()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::setnan ( )
inlinenoexcept

◆ sign()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::sign ( ) const
inlinenoexcept

◆ testbit()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
bool sw::universal::quire< NumberType, capacity, LimbType >::testbit ( unsigned index) const
inline

◆ to_blocktriple()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
blocktriple< qbits, BlockTripleOperator::REP, LimbType > sw::universal::quire< NumberType, capacity, LimbType >::to_blocktriple ( ) const
inline

Convert quire value to a blocktriple<qbits, REP>.

◆ total_bits()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
unsigned sw::universal::quire< NumberType, capacity, LimbType >::total_bits ( ) const
inlinenoexcept

◆ zero()

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
void sw::universal::quire< NumberType, capacity, LimbType >::zero ( )
inlinenoexcept

◆ abs

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
quire< NT, c, LT > abs ( const quire< NT, c, LT > & q)
friend

◆ operator!=

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
bool operator!= ( const quire< NT, c, LT > & lhs,
const quire< NT, c, LT > & rhs )
friend

◆ operator<

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
bool operator< ( const quire< NT, c, LT > & lhs,
const quire< NT, c, LT > & rhs )
friend

◆ operator<<

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
std::ostream & operator<< ( std::ostream & ostr,
const quire< NT, c, LT > & q )
friend

◆ operator<=

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
bool operator<= ( const quire< NT, c, LT > & lhs,
const quire< NT, c, LT > & rhs )
friend

◆ operator==

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
bool operator== ( const quire< NT, c, LT > & lhs,
const quire< NT, c, LT > & rhs )
friend

◆ operator>

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
bool operator> ( const quire< NT, c, LT > & lhs,
const quire< NT, c, LT > & rhs )
friend

◆ operator>=

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
template<typename NT, unsigned c, typename LT>
bool operator>= ( const quire< NT, c, LT > & lhs,
const quire< NT, c, LT > & rhs )
friend

Member Data Documentation

◆ half_range

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
unsigned sw::universal::quire< NumberType, capacity, LimbType >::half_range = Traits::half_range
staticconstexpr

◆ highest_scale

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
int sw::universal::quire< NumberType, capacity, LimbType >::highest_scale = static_cast<int>(qbits) - 1 - static_cast<int>(radix_point)
staticconstexpr

◆ lowest_scale

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
int sw::universal::quire< NumberType, capacity, LimbType >::lowest_scale = -static_cast<int>(radix_point)
staticconstexpr

◆ msb_index

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
unsigned sw::universal::quire< NumberType, capacity, LimbType >::msb_index = qbits - 1
staticconstexpr

◆ qbits

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
unsigned sw::universal::quire< NumberType, capacity, LimbType >::qbits = range + capacity
staticconstexpr

◆ radix_point

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
unsigned sw::universal::quire< NumberType, capacity, LimbType >::radix_point = Traits::radix_point
staticconstexpr

◆ range

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
unsigned sw::universal::quire< NumberType, capacity, LimbType >::range = Traits::range
staticconstexpr

◆ upper_range

template<typename NumberType, unsigned capacity = quire_traits<NumberType>::capacity, typename LimbType = uint32_t>
unsigned sw::universal::quire< NumberType, capacity, LimbType >::upper_range = Traits::upper_range
staticconstexpr

The documentation for this class was generated from the following files:
  • /home/runner/work/universal/universal/include/sw/universal/number/quire/quire_fwd.hpp
  • /home/runner/work/universal/universal/include/sw/universal/number/quire/quire_impl.hpp