|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <bit>#include <cmath>#include <cstdint>#include <type_traits>#include <limits>#include <math/constexpr_math/detail.hpp>#include <math/constexpr_math/log2.hpp>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::efloat_detail |
| decimal formatting (binary -> decimal string at arbitrary precision) | |
| namespace | sw::universal::efloat_detail::fp |
Variables | |
| constexpr double | sw::universal::efloat_detail::fp::pi = 3.141592653589793 |
| constexpr double | sw::universal::efloat_detail::fp::ln2 = 0.6931471805599453 |
| constexpr double | sw::universal::efloat_detail::fp::log10_2 = 0.30102999566398120 |