|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Typedefs | |
| using | sw::universal::mxfp4 = mxblock<e2m1> |
| using | sw::universal::mxfp6 = mxblock<e3m2> |
| using | sw::universal::mxfp6e2m3 = mxblock<e2m3> |
| using | sw::universal::mxfp8 = mxblock<e4m3_saturating> |
| using | sw::universal::mxfp8e5m2 = mxblock<e5m2_saturating> |
| using | sw::universal::mxint8 = mxblock<int8_t> |
Variables | |
| template<typename T> | |
| constexpr int | sw::universal::max_elem_exponent = 0 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< e2m1 > = 2 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< e2m3 > = 2 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< e3m2 > = 4 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< e4m3fn > = 8 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< e4m3_saturating > = 8 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< e5m2 > = 15 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< e5m2_saturating > = 15 |
| template<> | |
| constexpr int | sw::universal::max_elem_exponent< int8_t > = 6 |