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>
#include <cassert>
#include <cmath>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<unsigned nbits, unsigned rbits>
int sw::universal::scale_maxpos_fixpnt ()
template<unsigned nbits, unsigned rbits>
int sw::universal::scale_minpos_fixpnt ()
template<unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
std::string sw::universal::fixpnt_range (const fixpnt< nbits, rbits, arithmetic, bt > &v)
template<unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
bool sw::universal::sign (const fixpnt< nbits, rbits, arithmetic, bt > &v)
template<unsigned nbits, unsigned rbits, bool arithmetic, typename bt>
long double sw::universal::fraction_value (const fixpnt< nbits, rbits, arithmetic, bt > &v)