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 <cstdint>
#include <type_traits>
#include <universal/number/ereal/core.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nlimbs, typename FpType>
int sw::universal::sign (const ereal< nlimbs, FpType > &v)
template<unsigned nlimbs, typename FpType>
int64_t sw::universal::scale (const ereal< nlimbs, FpType > &v)
template<unsigned nlimbs, typename Real, typename FpType, typename = typename std::enable_if< std::is_floating_point<Real>::value, Real >::type>
Real sw::universal::significant (const ereal< nlimbs, FpType > &v)