Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
faithful_impl.hpp File Reference
#include <iosfwd>
#include <string>
#include <cassert>
#include <cmath>
#include <concepts>
#include <limits>
#include <type_traits>
#include <universal/native/ieee754_core.hpp>
#include <universal/native/manipulators_core.hpp>
#include <universal/internal/abstract/triple.hpp>
#include <universal/numerics/eft.hpp>

Classes

class  sw::universal::faithful< FloatingPointType >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::faithful_detail

Functions

template<typename FloatingPointType>
faithful< FloatingPointType > sw::universal::abs (const faithful< FloatingPointType > &v)
 Magnitude: both parts negated when the represented value is negative (#1936).
template<unsigned nbits, typename BlockType, typename FloatingPointType>
faithful< FloatingPointType > & sw::universal::convert (const triple< nbits, BlockType > &v, faithful< FloatingPointType > &p)
template<typename Real>
constexpr Real sw::universal::faithful_detail::pow2 (int e)
template<typename FloatingPointType>
constexpr faithful< FloatingPointType > & sw::universal::minpos (faithful< FloatingPointType > &lminpos)
template<typename FloatingPointType>
constexpr faithful< FloatingPointType > & sw::universal::maxpos (faithful< FloatingPointType > &lmaxpos)
template<typename FloatingPointType>
constexpr faithful< FloatingPointType > & sw::universal::minneg (faithful< FloatingPointType > &lminneg)
template<typename FloatingPointType>
constexpr faithful< FloatingPointType > & sw::universal::maxneg (faithful< FloatingPointType > &lmaxneg)
template<typename Real>
bool sw::universal::faithful_detail::part_isinf (const Real &v)
template<typename Real>
bool sw::universal::faithful_detail::part_isnan (const Real &v)
template<typename Real>
bool sw::universal::faithful_detail::part_isfinite (const Real &v)
template<typename FPType>
bool sw::universal::operator== (const faithful< FPType > &lhs, const faithful< FPType > &rhs)
template<typename FPType>
bool sw::universal::operator!= (const faithful< FPType > &lhs, const faithful< FPType > &rhs)
template<typename FPType>
bool sw::universal::operator< (const faithful< FPType > &lhs, const faithful< FPType > &rhs)
template<typename FPType>
bool sw::universal::operator> (const faithful< FPType > &lhs, const faithful< FPType > &rhs)
template<typename FPType>
bool sw::universal::operator<= (const faithful< FPType > &lhs, const faithful< FPType > &rhs)
template<typename FPType>
bool sw::universal::operator>= (const faithful< FPType > &lhs, const faithful< FPType > &rhs)
template<typename FloatingPointType>
faithful< FloatingPointType > sw::universal::operator+ (const faithful< FloatingPointType > &lhs, const faithful< FloatingPointType > &rhs)
template<typename FloatingPointType>
faithful< FloatingPointType > sw::universal::operator- (const faithful< FloatingPointType > &lhs, const faithful< FloatingPointType > &rhs)
template<typename FloatingPointType>
faithful< FloatingPointType > sw::universal::operator* (const faithful< FloatingPointType > &lhs, const faithful< FloatingPointType > &rhs)
template<typename FloatingPointType>
faithful< FloatingPointType > sw::universal::operator/ (const faithful< FloatingPointType > &lhs, const faithful< FloatingPointType > &rhs)