|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <posit_exponent.hpp>
Public Member Functions | |
| constexpr | positExponent () |
| constexpr | positExponent (const positExponent &r)=default |
| constexpr | positExponent (positExponent &&r)=default |
| constexpr positExponent & | operator= (const positExponent &r)=default |
| constexpr positExponent & | operator= (positExponent &&r)=default |
| constexpr void | reset () |
| constexpr void | setzero () |
| constexpr unsigned | nrBits () const noexcept |
| constexpr int | scale () const noexcept |
| constexpr long double | value () const noexcept |
| constexpr std::uint32_t | bits () const noexcept |
| constexpr void | set (const std::uint32_t &raw, unsigned nrExponentBits) |
| constexpr void | setNrBits (unsigned nrExpBits) noexcept |
| constexpr void | setbit (unsigned i, bool v=true) noexcept |
| constexpr bool | test (unsigned i) const noexcept |
| constexpr void | extract_exponent_bits (const blockbinary< nbits, bt, BinaryNumberType::Signed > &rawPositBits, unsigned nrRegimeBits) |
| bool | increment () noexcept |
Friends | |
| template<unsigned nnbits, unsigned ees, typename bbt> | |
| std::ostream & | operator<< (std::ostream &ostr, const positExponent< nnbits, ees, bbt > &e) |
| template<unsigned nnbits, unsigned ees, typename bbt> | |
| bool | operator== (const positExponent< nnbits, ees, bbt > &lhs, const positExponent< nnbits, ees, bbt > &rhs) |
| template<unsigned nnbits, unsigned ees, typename bbt> | |
| bool | operator!= (const positExponent< nnbits, ees, bbt > &lhs, const positExponent< nnbits, ees, bbt > &rhs) |
| template<unsigned nnbits, unsigned ees, typename bbt> | |
| bool | operator< (const positExponent< nnbits, ees, bbt > &lhs, const positExponent< nnbits, ees, bbt > &rhs) |
| template<unsigned nnbits, unsigned ees, typename bbt> | |
| bool | operator> (const positExponent< nnbits, ees, bbt > &lhs, const positExponent< nnbits, ees, bbt > &rhs) |
| template<unsigned nnbits, unsigned ees, typename bbt> | |
| bool | operator<= (const positExponent< nnbits, ees, bbt > &lhs, const positExponent< nnbits, ees, bbt > &rhs) |
| template<unsigned nnbits, unsigned ees, typename bbt> | |
| bool | operator>= (const positExponent< nnbits, ees, bbt > &lhs, const positExponent< nnbits, ees, bbt > &rhs) |
|
inlineconstexpr |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |