fixed_point128 1.0.1.0
128 bit integer, fixed point and floating point arithmetic for C++20
Loading...
Searching...
No Matches
std::numeric_limits< fp128::float128 > Class Reference

Numeric properties of fp128::float128, the binary128 interchange format. More...

#include <float128.h>

Static Public Member Functions

static FP128_SUPPRESS_DEPRECATED_END constexpr fp128::float128 min () noexcept
 Smallest positive normal value, 2^-16382.
static constexpr fp128::float128 max () noexcept
 Largest finite value, (2 - 2^-112) * 2^16383.
static constexpr fp128::float128 lowest () noexcept
 Most negative finite value.
static constexpr fp128::float128 epsilon () noexcept
 Difference between one and the next larger value, 2^-112.
static constexpr fp128::float128 round_error () noexcept
 Largest rounding error in units in the last place, one half.
static constexpr fp128::float128 denorm_min () noexcept
 Smallest positive subnormal, 2^-16494.
static constexpr fp128::float128 infinity () noexcept
static constexpr fp128::float128 quiet_NaN () noexcept
static constexpr fp128::float128 signaling_NaN () noexcept

Static Public Attributes

static constexpr bool is_specialized = true
static constexpr bool is_signed = true
static constexpr bool is_integer = false
static constexpr bool is_exact = false
static constexpr bool has_infinity = true
static constexpr bool has_quiet_NaN = true
static constexpr bool has_signaling_NaN = true
static constexpr bool is_bounded = true
static constexpr bool is_modulo = false
static constexpr bool is_iec559 = fp128::float128::is754version2008()
 True only with FP128_IEEE_ENV, which adds the rounding directions and the exception flags IEEE 754 requires; the format and the default arithmetic conform either way. See float128::is754version2008().
static constexpr bool traps = false
 Exceptions raise flags (with FP128_IEEE_ENV) but never trap.
static constexpr bool tinyness_before = false
 Tininess is detected after rounding, as x86 does for double.
static constexpr float_round_style round_style = round_to_nearest
static constexpr int digits = 113
 Mantissa bits including the implicit leading one.
static constexpr int digits10 = 33
 Decimal digits that survive a round trip through the type.
static constexpr int max_digits10 = 36
 Decimal digits needed to distinguish every value of the type.
static constexpr int radix = 2
static constexpr int min_exponent = -16381
static constexpr int max_exponent = 16384
static constexpr int min_exponent10 = -4931
static constexpr int max_exponent10 = 4932
static FP128_SUPPRESS_DEPRECATED_BEGIN constexpr float_denorm_style has_denorm = denorm_present
static constexpr bool has_denorm_loss = false

Detailed Description

Numeric properties of fp128::float128, the binary128 interchange format.

Specialized so that a function template written against a builtin floating point type - anything reaching for numeric_limits<T>::epsilon() to size a tolerance, or for max() to seed a minimum - compiles and behaves correctly when instantiated with float128.

The values are given as encodings rather than computed, which keeps every one of them usable in a constant expression and independent of the string parser.

The const, volatile and const volatile forms need no specialization of their own: <limits> already defines numeric_limits<cv T> to have the members of numeric_limits<T>.

Definition at line 7814 of file float128.h.

Member Function Documentation

◆ min()

FP128_SUPPRESS_DEPRECATED_END constexpr fp128::float128 std::numeric_limits< fp128::float128 >::min ( )
inlinestaticnodiscardconstexprnoexcept

Smallest positive normal value, 2^-16382.

Definition at line 7856 of file float128.h.

◆ max()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::max ( )
inlinestaticnodiscardconstexprnoexcept

Largest finite value, (2 - 2^-112) * 2^16383.

Definition at line 7858 of file float128.h.

◆ lowest()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::lowest ( )
inlinestaticnodiscardconstexprnoexcept

Most negative finite value.

Definition at line 7860 of file float128.h.

◆ epsilon()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::epsilon ( )
inlinestaticnodiscardconstexprnoexcept

Difference between one and the next larger value, 2^-112.

Definition at line 7862 of file float128.h.

◆ round_error()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::round_error ( )
inlinestaticnodiscardconstexprnoexcept

Largest rounding error in units in the last place, one half.

Definition at line 7864 of file float128.h.

◆ denorm_min()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::denorm_min ( )
inlinestaticnodiscardconstexprnoexcept

Smallest positive subnormal, 2^-16494.

Definition at line 7866 of file float128.h.

◆ infinity()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::infinity ( )
inlinestaticnodiscardconstexprnoexcept

Definition at line 7867 of file float128.h.

◆ quiet_NaN()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::quiet_NaN ( )
inlinestaticnodiscardconstexprnoexcept

Definition at line 7868 of file float128.h.

◆ signaling_NaN()

constexpr fp128::float128 std::numeric_limits< fp128::float128 >::signaling_NaN ( )
inlinestaticnodiscardconstexprnoexcept

Definition at line 7869 of file float128.h.

Member Data Documentation

◆ is_specialized

bool std::numeric_limits< fp128::float128 >::is_specialized = true
staticconstexpr

Definition at line 7817 of file float128.h.

◆ is_signed

bool std::numeric_limits< fp128::float128 >::is_signed = true
staticconstexpr

Definition at line 7818 of file float128.h.

◆ is_integer

bool std::numeric_limits< fp128::float128 >::is_integer = false
staticconstexpr

Definition at line 7819 of file float128.h.

◆ is_exact

bool std::numeric_limits< fp128::float128 >::is_exact = false
staticconstexpr

Definition at line 7820 of file float128.h.

◆ has_infinity

bool std::numeric_limits< fp128::float128 >::has_infinity = true
staticconstexpr

Definition at line 7821 of file float128.h.

◆ has_quiet_NaN

bool std::numeric_limits< fp128::float128 >::has_quiet_NaN = true
staticconstexpr

Definition at line 7822 of file float128.h.

◆ has_signaling_NaN

bool std::numeric_limits< fp128::float128 >::has_signaling_NaN = true
staticconstexpr

Definition at line 7823 of file float128.h.

◆ is_bounded

bool std::numeric_limits< fp128::float128 >::is_bounded = true
staticconstexpr

Definition at line 7824 of file float128.h.

◆ is_modulo

bool std::numeric_limits< fp128::float128 >::is_modulo = false
staticconstexpr

Definition at line 7825 of file float128.h.

◆ is_iec559

bool std::numeric_limits< fp128::float128 >::is_iec559 = fp128::float128::is754version2008()
staticconstexpr

True only with FP128_IEEE_ENV, which adds the rounding directions and the exception flags IEEE 754 requires; the format and the default arithmetic conform either way. See float128::is754version2008().

Definition at line 7829 of file float128.h.

◆ traps

bool std::numeric_limits< fp128::float128 >::traps = false
staticconstexpr

Exceptions raise flags (with FP128_IEEE_ENV) but never trap.

Definition at line 7831 of file float128.h.

◆ tinyness_before

bool std::numeric_limits< fp128::float128 >::tinyness_before = false
staticconstexpr

Tininess is detected after rounding, as x86 does for double.

Definition at line 7833 of file float128.h.

◆ round_style

float_round_style std::numeric_limits< fp128::float128 >::round_style = round_to_nearest
staticconstexpr

Definition at line 7834 of file float128.h.

◆ digits

int std::numeric_limits< fp128::float128 >::digits = 113
staticconstexpr

Mantissa bits including the implicit leading one.

Definition at line 7837 of file float128.h.

◆ digits10

int std::numeric_limits< fp128::float128 >::digits10 = 33
staticconstexpr

Decimal digits that survive a round trip through the type.

Definition at line 7839 of file float128.h.

◆ max_digits10

int std::numeric_limits< fp128::float128 >::max_digits10 = 36
staticconstexpr

Decimal digits needed to distinguish every value of the type.

Definition at line 7841 of file float128.h.

◆ radix

int std::numeric_limits< fp128::float128 >::radix = 2
staticconstexpr

Definition at line 7842 of file float128.h.

◆ min_exponent

int std::numeric_limits< fp128::float128 >::min_exponent = -16381
staticconstexpr

Definition at line 7843 of file float128.h.

◆ max_exponent

int std::numeric_limits< fp128::float128 >::max_exponent = 16384
staticconstexpr

Definition at line 7844 of file float128.h.

◆ min_exponent10

int std::numeric_limits< fp128::float128 >::min_exponent10 = -4931
staticconstexpr

Definition at line 7845 of file float128.h.

◆ max_exponent10

int std::numeric_limits< fp128::float128 >::max_exponent10 = 4932
staticconstexpr

Definition at line 7846 of file float128.h.

◆ has_denorm

FP128_SUPPRESS_DEPRECATED_BEGIN constexpr float_denorm_style std::numeric_limits< fp128::float128 >::has_denorm = denorm_present
staticconstexpr

Definition at line 7851 of file float128.h.

◆ has_denorm_loss

bool std::numeric_limits< fp128::float128 >::has_denorm_loss = false
staticconstexpr

Definition at line 7852 of file float128.h.


The documentation for this class was generated from the following file: