GADGET-4
numeric_limits< half_float::half > Class Reference

#include <half.hpp>

Inherits numeric_limits< float >.

Static Public Member Functions

static HALF_CONSTEXPR half_float::half min () HALF_NOTHROW
 Smallest positive normal value. More...
 
static HALF_CONSTEXPR half_float::half lowest () HALF_NOTHROW
 Smallest finite value. More...
 
static HALF_CONSTEXPR half_float::half max () HALF_NOTHROW
 Largest finite value. More...
 
static HALF_CONSTEXPR half_float::half epsilon () HALF_NOTHROW
 Difference between one and next representable value. More...
 
static HALF_CONSTEXPR half_float::half round_error () HALF_NOTHROW
 Maximum rounding error. More...
 
static HALF_CONSTEXPR half_float::half infinity () HALF_NOTHROW
 Positive infinity. More...
 
static HALF_CONSTEXPR half_float::half quiet_NaN () HALF_NOTHROW
 Quiet NaN. More...
 
static HALF_CONSTEXPR half_float::half signaling_NaN () HALF_NOTHROW
 Signalling NaN. More...
 
static HALF_CONSTEXPR half_float::half denorm_min () HALF_NOTHROW
 Smallest positive subnormal value. More...
 

Static Public Attributes

static HALF_CONSTEXPR_CONST bool is_signed = true
 Supports signed values. More...
 
static HALF_CONSTEXPR_CONST bool is_exact = false
 Is not exact. More...
 
static HALF_CONSTEXPR_CONST bool is_modulo = false
 Doesn't provide modulo arithmetic. More...
 
static HALF_CONSTEXPR_CONST bool is_iec559 = true
 IEEE conformant. More...
 
static HALF_CONSTEXPR_CONST bool has_infinity = true
 Supports infinity. More...
 
static HALF_CONSTEXPR_CONST bool has_quiet_NaN = true
 Supports quiet NaNs. More...
 
static HALF_CONSTEXPR_CONST float_denorm_style has_denorm = denorm_present
 Supports subnormal values. More...
 
static HALF_CONSTEXPR_CONST float_round_style round_style
 
static HALF_CONSTEXPR_CONST int digits = 11
 Significant digits. More...
 
static HALF_CONSTEXPR_CONST int digits10 = 3
 Significant decimal digits. More...
 
static HALF_CONSTEXPR_CONST int max_digits10 = 5
 Required decimal digits to represent all possible values. More...
 
static HALF_CONSTEXPR_CONST int radix = 2
 Number base. More...
 
static HALF_CONSTEXPR_CONST int min_exponent = -13
 One more than smallest exponent. More...
 
static HALF_CONSTEXPR_CONST int min_exponent10 = -4
 Smallest normalized representable power of 10. More...
 
static HALF_CONSTEXPR_CONST int max_exponent = 16
 One more than largest exponent. More...
 
static HALF_CONSTEXPR_CONST int max_exponent10 = 4
 Largest finitely representable power of 10. More...
 

Detailed Description

Numeric limits for half-precision floats. Because of the underlying single-precision implementation of many operations, it inherits some properties from std::numeric_limits<float>.

Definition at line 3377 of file half.hpp.

Member Function Documentation

◆ denorm_min()

static HALF_CONSTEXPR half_float::half denorm_min ( )
inlinestatic

Smallest positive subnormal value.

Definition at line 3461 of file half.hpp.

◆ epsilon()

static HALF_CONSTEXPR half_float::half epsilon ( )
inlinestatic

Difference between one and next representable value.

Definition at line 3443 of file half.hpp.

◆ infinity()

static HALF_CONSTEXPR half_float::half infinity ( )
inlinestatic

Positive infinity.

Definition at line 3452 of file half.hpp.

◆ lowest()

static HALF_CONSTEXPR half_float::half lowest ( )
inlinestatic

Smallest finite value.

Definition at line 3437 of file half.hpp.

◆ max()

static HALF_CONSTEXPR half_float::half max ( )
inlinestatic

Largest finite value.

Definition at line 3440 of file half.hpp.

◆ min()

static HALF_CONSTEXPR half_float::half min ( )
inlinestatic

Smallest positive normal value.

Definition at line 3434 of file half.hpp.

◆ quiet_NaN()

static HALF_CONSTEXPR half_float::half quiet_NaN ( )
inlinestatic

Quiet NaN.

Definition at line 3455 of file half.hpp.

◆ round_error()

static HALF_CONSTEXPR half_float::half round_error ( )
inlinestatic

Maximum rounding error.

Definition at line 3446 of file half.hpp.

◆ signaling_NaN()

static HALF_CONSTEXPR half_float::half signaling_NaN ( )
inlinestatic

Signalling NaN.

Definition at line 3458 of file half.hpp.

Member Data Documentation

◆ digits

HALF_CONSTEXPR_CONST int digits = 11
static

Significant digits.

Definition at line 3410 of file half.hpp.

◆ digits10

HALF_CONSTEXPR_CONST int digits10 = 3
static

Significant decimal digits.

Definition at line 3413 of file half.hpp.

◆ has_denorm

HALF_CONSTEXPR_CONST float_denorm_style has_denorm = denorm_present
static

Supports subnormal values.

Definition at line 3399 of file half.hpp.

◆ has_infinity

HALF_CONSTEXPR_CONST bool has_infinity = true
static

Supports infinity.

Definition at line 3393 of file half.hpp.

◆ has_quiet_NaN

HALF_CONSTEXPR_CONST bool has_quiet_NaN = true
static

Supports quiet NaNs.

Definition at line 3396 of file half.hpp.

◆ is_exact

HALF_CONSTEXPR_CONST bool is_exact = false
static

Is not exact.

Definition at line 3384 of file half.hpp.

◆ is_iec559

HALF_CONSTEXPR_CONST bool is_iec559 = true
static

IEEE conformant.

Definition at line 3390 of file half.hpp.

◆ is_modulo

HALF_CONSTEXPR_CONST bool is_modulo = false
static

Doesn't provide modulo arithmetic.

Definition at line 3387 of file half.hpp.

◆ is_signed

HALF_CONSTEXPR_CONST bool is_signed = true
static

Supports signed values.

Definition at line 3381 of file half.hpp.

◆ max_digits10

HALF_CONSTEXPR_CONST int max_digits10 = 5
static

Required decimal digits to represent all possible values.

Definition at line 3416 of file half.hpp.

◆ max_exponent

HALF_CONSTEXPR_CONST int max_exponent = 16
static

One more than largest exponent.

Definition at line 3428 of file half.hpp.

◆ max_exponent10

HALF_CONSTEXPR_CONST int max_exponent10 = 4
static

Largest finitely representable power of 10.

Definition at line 3431 of file half.hpp.

◆ min_exponent

HALF_CONSTEXPR_CONST int min_exponent = -13
static

One more than smallest exponent.

Definition at line 3422 of file half.hpp.

◆ min_exponent10

HALF_CONSTEXPR_CONST int min_exponent10 = -4
static

Smallest normalized representable power of 10.

Definition at line 3425 of file half.hpp.

◆ radix

HALF_CONSTEXPR_CONST int radix = 2
static

Number base.

Definition at line 3419 of file half.hpp.

◆ round_style

HALF_CONSTEXPR_CONST float_round_style round_style
static
Initial value:
=
(std::numeric_limits<float>::round_style == half_float::half::round_style) ? half_float::half::round_style : round_indeterminate

Rounding mode. Due to the mix of internal single-precision computations (using the rounding mode of the underlying single-precision implementation) with the rounding mode of the single-to-half conversions, the actual rounding mode might be std::round_indeterminate if the default half-precision rounding mode doesn't match the single-precision rounding mode.

Definition at line 3406 of file half.hpp.


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