Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
extract_fields.hpp File Reference
#include <bit>
#include <cfloat>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <limits>
#include <universal/native/long_double_significand.hpp>
#include <universal/number/shared/nan_encoding.hpp>
#include <universal/number/shared/infinite_encoding.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

void sw::universal::extractFields (float value, bool &s, uint64_t &rawExponentBits, uint64_t &lowerBits, uint64_t &upperBits) noexcept
void sw::universal::extractFields (double value, bool &s, uint64_t &rawExponentBits, uint64_t &lowerBits, uint64_t &upperBits) noexcept
void sw::universal::extractFields (long double value, bool &s, uint64_t &rawExponentBits, uint64_t &lowerBits, uint64_t &upperBits) noexcept
template<typename Real>
constexpr int sw::universal::classifyNaNFields (uint64_t rawExponent, uint64_t rawFraction) noexcept
template<typename Real>
BIT_CAST_CONSTEXPR bool sw::universal::checkNaN (Real value, int &nan_type)
template<>
BIT_CAST_CONSTEXPR bool sw::universal::checkNaN (float value, int &nan_type)
template<>
BIT_CAST_CONSTEXPR bool sw::universal::checkNaN (double value, int &nan_type)
template<>
bool sw::universal::checkNaN (long double value, int &nan_type)
template<typename Real>
BIT_CAST_CONSTEXPR bool sw::universal::checkInf (Real value, int &inf_type)
template<>
BIT_CAST_CONSTEXPR bool sw::universal::checkInf (float value, int &inf_type)
template<>
bool sw::universal::checkInf (long double value, int &inf_type)
template<>
BIT_CAST_CONSTEXPR bool sw::universal::checkInf (double value, int &inf_type)