Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
posit_exponent.hpp File Reference
#include <universal/internal/bit_manipulation.hpp>
#include <iosfwd>

Classes

class  sw::universal::positExponent< nbits, es, bt >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned es, typename bt>
int sw::universal::scale (const positExponent< nbits, es, bt > &e)
template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::operator== (const positExponent< nbits, es, bt > &lhs, const positExponent< nbits, es, bt > &rhs)
template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::operator!= (const positExponent< nbits, es, bt > &lhs, const positExponent< nbits, es, bt > &rhs)
template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::operator< (const positExponent< nbits, es, bt > &lhs, const positExponent< nbits, es, bt > &rhs)
template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::operator> (const positExponent< nbits, es, bt > &lhs, const positExponent< nbits, es, bt > &rhs)
template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::operator<= (const positExponent< nbits, es, bt > &lhs, const positExponent< nbits, es, bt > &rhs)
template<unsigned nbits, unsigned es, typename bt>
bool sw::universal::operator>= (const positExponent< nbits, es, bt > &lhs, const positExponent< nbits, es, bt > &rhs)

Variables

static constexpr int sw::universal::GEOMETRIC_ROUND_DOWN = -2
static constexpr int sw::universal::ARITHMETIC_ROUND_DOWN = -1
static constexpr int sw::universal::NO_ADDITIONAL_ROUNDING = 0
static constexpr int sw::universal::ARITHMETIC_ROUND_UP = 1
static constexpr int sw::universal::GEOMETRIC_ROUND_UP = 2
static constexpr int sw::universal::ARITHMETIC_ROUNDING = 5