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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned rbits, typename bt>
bool sw::universal::sign (const takum< nbits, rbits, bt > &v)
template<unsigned nbits, unsigned rbits, typename bt>
std::string sw::universal::takum_range (const takum< nbits, rbits, bt > &v={})
template<unsigned nbits, unsigned rbits, typename bt>
std::string sw::universal::dynamic_range (const takum< nbits, rbits, bt > &a)
template<unsigned nbits, unsigned rbits, typename bt>
int sw::universal::minpos_scale (const takum< nbits, rbits, bt > &b)
template<unsigned nbits, unsigned rbits, typename bt>
int sw::universal::maxpos_scale (const takum< nbits, rbits, bt > &b)
template<unsigned nbits, unsigned rbits, typename bt>
int sw::universal::max_negative_scale (const takum< nbits, rbits, bt > &b)