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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned rs, unsigned es, typename bt>
constexpr bool sw::universal::sign (const bposit< nbits, rs, es, bt > &v) noexcept
template<unsigned nbits, unsigned rs, unsigned es, typename bt>
constexpr int sw::universal::scale (const bposit< nbits, rs, es, bt > &v) noexcept
template<unsigned nbits, unsigned rs, unsigned es, typename bt>
constexpr unsigned sw::universal::fraction_bits (const bposit< nbits, rs, es, bt > &v) noexcept