|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cmath>#include <cstdint>#include <limits>#include <type_traits>#include <universal/number/cfloat/cfloat_fwd.hpp>#include <universal/number/bfloat16/bfloat16_fwd.hpp>#include <universal/number/integer/core.hpp>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
| namespace | sw::universal::detail_block |
Functions | |
| template<typename FpType> | |
| constexpr FpType | sw::universal::detail_block::ldexp_block (FpType v, int n) |
| template<typename FpType> | |
| constexpr block< FpType > | sw::universal::createZero (typename block< FpType >::exp_t e) noexcept |
| template<typename FpType> | |
| constexpr bool | sw::universal::singleBit (const block< FpType > &b) noexcept |
| template<typename FpType> | |
| constexpr bool | sw::universal::dominate (const block< FpType > &b1, const block< FpType > &b2) noexcept |
| template<typename FpType> | |
| constexpr bool | sw::universal::expGreater (const block< FpType > &a, const block< FpType > &b) noexcept |
| template<typename FpType> | |
| constexpr bool | sw::universal::expGreaterBy (std::int32_t n, const block< FpType > &a, const block< FpType > &b) noexcept |
| template<typename FpType> | |
| constexpr bool | sw::universal::zero_overlap (const block< FpType > &b1, const block< FpType > &b2) noexcept |
Variables | |
| template<typename T> | |
| constexpr bool | sw::universal::has_universal_fp_api_v = has_universal_fp_api<T>::value |