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 <iomanip>
#include <cstdint>
#include <string>
#include <sstream>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
bool sw::universal::sign (microfloat< nbits, es, hasInf, hasNaN, isSaturating > mf)
template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
int sw::universal::scale (microfloat< nbits, es, hasInf, hasNaN, isSaturating > mf)
template<unsigned nbits, unsigned es, bool hasInf, bool hasNaN, bool isSaturating>
std::string sw::universal::microfloat_range ()