|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cstddef>#include <cstdint>#include <universal/number/efloat/core.hpp>#include <universal/number/posit/posit_limbs.hpp>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::posit_limbs |
Typedefs | |
| template<unsigned nbits> | |
| using | sw::universal::posit_limbs::efloat_for = efloat<static_cast<unsigned>(2u * limbs(nbits) + 2u)> |
Functions | |
| template<unsigned nbits, unsigned es, typename bt> | |
| efloat_for< nbits > | sw::universal::posit_limbs::to_efloat (const posit< nbits, es, bt > &x) |
| template<unsigned nbits, unsigned es, typename bt, unsigned nlimbs> | |
| posit< nbits, es, bt > & | sw::universal::posit_limbs::from_efloat (posit< nbits, es, bt > &p, const efloat< nlimbs > &v) |