Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
ereal_impl.hpp File Reference
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <ios>
#include <limits>
#include <string>
#include <vector>
#include <type_traits>
#include <universal/utility/exceptions_check.hpp>
#include <universal/native/ieee754_core.hpp>
#include <universal/native/manipulators_core.hpp>
#include <universal/number/shared/specific_value_encoding.hpp>
#include <universal/internal/expansion/expansion_ops.hpp>
#include <universal/number/ereal/exceptions.hpp>
#include <universal/number/ereal/ereal_fwd.hpp>

Classes

class  sw::universal::ereal< maxlimbs, FpType >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Macros

#define EREAL_THROW_ARITHMETIC_EXCEPTION   0
 BEHAVIORAL COMPILATION SWITCHES.

Functions

template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::abs (const ereal< nlimbs, FpType > &a)
template<unsigned maxlimbs, typename FpType>
ereal< maxlimbs, FpType > sw::universal::pown (const ereal< maxlimbs, FpType > &x, int n)
template<unsigned nlimbs, typename FpType>
bool sw::universal::parse (const std::string &txt, ereal< nlimbs, FpType > &value)
 string parsing
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator== (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator!= (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator< (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator> (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator<= (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator>= (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator== (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator!= (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator< (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator> (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator<= (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator>= (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator== (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator!= (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator< (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator> (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator<= (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
bool sw::universal::operator>= (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator+ (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator- (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator* (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator/ (const ereal< nlimbs, FpType > &lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator+ (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator- (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator* (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator/ (const ereal< nlimbs, FpType > &lhs, double rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator+ (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator- (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator* (double lhs, const ereal< nlimbs, FpType > &rhs)
template<unsigned nlimbs, typename FpType>
ereal< nlimbs, FpType > sw::universal::operator/ (double lhs, const ereal< nlimbs, FpType > &rhs)

Macro Definition Documentation

◆ EREAL_THROW_ARITHMETIC_EXCEPTION

#define EREAL_THROW_ARITHMETIC_EXCEPTION   0

BEHAVIORAL COMPILATION SWITCHES.

Defaults here rather than in the ereal.hpp umbrella, so that a translation unit which includes core.hpp directly gets the same default (#1334, #1436). Defining it before any ereal header still wins.