Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
attributes.hpp File Reference
#include <cmath>
#include <cstdint>
#include <type_traits>
#include <universal/number/elreal/elreal_fwd.hpp>
#include <universal/number/elreal/elreal_impl.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<typename FpType>
bool sw::universal::isnan (const elreal< FpType > &v)
template<typename FpType>
bool sw::universal::isinf (const elreal< FpType > &v)
template<typename FpType>
bool sw::universal::isfinite (const elreal< FpType > &v)
template<typename FpType>
bool sw::universal::signbit (const elreal< FpType > &v)
template<typename FpType>
int sw::universal::sign (const elreal< FpType > &v)
template<typename FpType>
int64_t sw::universal::scale (const elreal< FpType > &v)
template<typename FpType, typename Real = double, typename = std::enable_if_t<std::is_floating_point<Real>::value, Real>>
Real sw::universal::significand (const elreal< FpType > &v)