Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
elreal_impl.hpp File Reference

Classes

struct  sw::universal::elreal_precision_guard
class  sw::universal::elreal< FpType >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::detail

Enumerations

enum class  sw::universal::elreal_class : std::uint8_t { sw::universal::finite = 0 , sw::universal::pinf = 1 , sw::universal::ninf = 2 , sw::universal::qnan = 3 }
enum class  sw::universal::elreal_order : std::uint8_t { sw::universal::less , sw::universal::equal , sw::universal::greater , sw::universal::unordered }

Functions

std::size_t & sw::universal::elreal_default_precision ()
constexpr bool sw::universal::detail::is_inf_class (elreal_class c) noexcept
constexpr elreal_class sw::universal::detail::negate_class (elreal_class c) noexcept
constexpr elreal_class sw::universal::detail::inf_with_sign (int s) noexcept
template<typename FpType>
elreal< FpType > sw::universal::operator+ (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::operator- (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::operator* (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::operator/ (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::operator+ (const elreal< FpType > &a, double b)
template<typename FpType>
elreal< FpType > sw::universal::operator- (const elreal< FpType > &a, double b)
template<typename FpType>
elreal< FpType > sw::universal::operator* (const elreal< FpType > &a, double b)
template<typename FpType>
elreal< FpType > sw::universal::operator/ (const elreal< FpType > &a, double b)
template<typename FpType>
elreal< FpType > sw::universal::operator+ (double a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::operator- (double a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::operator* (double a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::operator/ (double a, const elreal< FpType > &b)
template<typename FpType>
int sw::universal::elreal_cmp (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
elreal_order sw::universal::elreal_order_of (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator== (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator!= (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator< (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator> (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator<= (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator>= (const elreal< FpType > &a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator== (const elreal< FpType > &a, double b)
template<typename FpType>
bool sw::universal::operator!= (const elreal< FpType > &a, double b)
template<typename FpType>
bool sw::universal::operator< (const elreal< FpType > &a, double b)
template<typename FpType>
bool sw::universal::operator> (const elreal< FpType > &a, double b)
template<typename FpType>
bool sw::universal::operator<= (const elreal< FpType > &a, double b)
template<typename FpType>
bool sw::universal::operator>= (const elreal< FpType > &a, double b)
template<typename FpType>
bool sw::universal::operator== (double a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator!= (double a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator< (double a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator> (double a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator<= (double a, const elreal< FpType > &b)
template<typename FpType>
bool sw::universal::operator>= (double a, const elreal< FpType > &b)
template<typename FpType>
elreal< FpType > sw::universal::abs (const elreal< FpType > &)
template<typename FpType>
elreal< FpType > sw::universal::fabs (const elreal< FpType > &)

Variables

constexpr std::size_t sw::universal::kElrealDefaultPrecision = 32
constexpr std::size_t sw::universal::kQuotientGuard = 2