|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <unum_impl.hpp>
Public Types | |
| using | StorageType = blockbinary<maxbits, bt> |
| using | Lattice = unum_lattice<esizesize, fsizesize> |
| using | Tiles = unum_tiles<esizesize, fsizesize> |
| using | bound = typename Tiles::bound |
Public Member Functions | |
| constexpr | unum () noexcept |
| constexpr | unum (const unum &)=default |
| constexpr | unum (unum &&)=default |
| constexpr unum & | operator= (const unum &)=default |
| constexpr unum & | operator= (unum &&)=default |
| CONSTEXPRESSION | unum (signed char initial_value) |
| CONSTEXPRESSION | unum (short initial_value) |
| CONSTEXPRESSION | unum (int initial_value) |
| CONSTEXPRESSION | unum (long long initial_value) |
| CONSTEXPRESSION | unum (unsigned long long initial_value) |
| CONSTEXPRESSION | unum (float initial_value) |
| CONSTEXPRESSION | unum (double initial_value) |
| CONSTEXPRESSION | unum (long double initial_value) |
| CONSTEXPRESSION unum & | operator= (signed char rhs) |
| CONSTEXPRESSION unum & | operator= (short rhs) |
| CONSTEXPRESSION unum & | operator= (int rhs) |
| CONSTEXPRESSION unum & | operator= (long long rhs) |
| CONSTEXPRESSION unum & | operator= (unsigned long long rhs) |
| CONSTEXPRESSION unum & | operator= (float rhs) |
| CONSTEXPRESSION unum & | operator= (double rhs) |
| CONSTEXPRESSION unum & | operator= (long double rhs) |
| constexpr unum | operator- () const noexcept |
| CONSTEXPRESSION unum & | operator+= (const unum &rhs) |
| CONSTEXPRESSION unum & | operator-= (const unum &rhs) |
| CONSTEXPRESSION unum & | operator*= (const unum &rhs) |
| CONSTEXPRESSION unum & | operator/= (const unum &rhs) |
| CONSTEXPRESSION unum & | operator++ () |
| CONSTEXPRESSION unum | operator++ (int) |
| CONSTEXPRESSION unum & | operator-- () |
| CONSTEXPRESSION unum | operator-- (int) |
| constexpr void | clear () noexcept |
| constexpr void | setzero () noexcept |
| constexpr void | setnan () noexcept |
| constexpr void | setbits (uint64_t v) noexcept |
| constexpr void | setbit (unsigned i, bool v=true) noexcept |
| constexpr StorageType | bits () const noexcept |
| constexpr bool | at (unsigned i) const noexcept |
| constexpr bool | ubit () const noexcept |
| constexpr unsigned | fsize () const noexcept |
| constexpr unsigned | esize () const noexcept |
| constexpr unsigned | nbits_used () const noexcept |
| constexpr bool | sign () const noexcept |
| constexpr uint64_t | exponent () const noexcept |
| constexpr uint64_t | fraction () const noexcept |
| constexpr bool | iszero () const noexcept |
| constexpr bool | isnan () const noexcept |
| constexpr bool | isneg () const noexcept |
| constexpr bool | ispos () const noexcept |
| constexpr bool | isinf () const noexcept |
| constexpr bool | exact () const noexcept |
| constexpr double | to_double () const noexcept |
| constexpr float | to_float () const noexcept |
| constexpr long double | to_long_double () const noexcept |
| constexpr | operator double () const noexcept |
| constexpr | operator float () const noexcept |
| constexpr | operator long double () const noexcept |
| CONSTEXPRESSION void | tile_bounds (bound &lo, bound &hi) const noexcept |
Static Public Member Functions | |
| static CONSTEXPRESSION unum | enclose (const bound &lo, const bound &hi) noexcept |
Static Public Attributes | |
| static constexpr unsigned | maxesize = (1u << esizesize) |
| static constexpr unsigned | maxfsize = (1u << fsizesize) - 1u |
| static constexpr unsigned | utagsize = 1u + fsizesize + esizesize |
| static constexpr unsigned | maxbits = 1u + maxesize + maxfsize + esizesize + fsizesize + 1u |
Friends | |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| std::ostream & | operator<< (std::ostream &ostr, const unum< nesizesize, nfsizesize, nbt > &v) |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| std::istream & | operator>> (std::istream &istr, unum< nesizesize, nfsizesize, nbt > &v) |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| constexpr bool | operator== (const unum< nesizesize, nfsizesize, nbt > &lhs, const unum< nesizesize, nfsizesize, nbt > &rhs) noexcept |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| constexpr bool | operator!= (const unum< nesizesize, nfsizesize, nbt > &lhs, const unum< nesizesize, nfsizesize, nbt > &rhs) noexcept |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| constexpr bool | operator< (const unum< nesizesize, nfsizesize, nbt > &lhs, const unum< nesizesize, nfsizesize, nbt > &rhs) noexcept |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| constexpr bool | operator> (const unum< nesizesize, nfsizesize, nbt > &lhs, const unum< nesizesize, nfsizesize, nbt > &rhs) noexcept |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| constexpr bool | operator<= (const unum< nesizesize, nfsizesize, nbt > &lhs, const unum< nesizesize, nfsizesize, nbt > &rhs) noexcept |
| template<unsigned nesizesize, unsigned nfsizesize, typename nbt> | |
| constexpr bool | operator>= (const unum< nesizesize, nfsizesize, nbt > &lhs, const unum< nesizesize, nfsizesize, nbt > &rhs) noexcept |
| using sw::universal::unum< esizesize, fsizesize, bt >::bound = typename Tiles::bound |
| using sw::universal::unum< esizesize, fsizesize, bt >::Lattice = unum_lattice<esizesize, fsizesize> |
| using sw::universal::unum< esizesize, fsizesize, bt >::StorageType = blockbinary<maxbits, bt> |
| using sw::universal::unum< esizesize, fsizesize, bt >::Tiles = unum_tiles<esizesize, fsizesize> |
|
inlineconstexprnoexcept |
|
constexprdefault |
|
constexprdefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineconstexprnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
constexprdefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
constexprdefault |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |