WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
std::numeric_limits< half_float::half > Class Reference

#include <half.hpp>

Static Public Member Functions

static half_float::half min () throw ()
 Smallest positive normal value.
static half_float::half lowest () throw ()
 Smallest finite value.
static half_float::half max () throw ()
 Largest finite value.
static half_float::half epsilon () throw ()
 Difference between 1 and next representable value.
static half_float::half round_error () throw ()
 Maximum rounding error in ULP (units in the last place).
static half_float::half infinity () throw ()
 Positive infinity.
static half_float::half quiet_NaN () throw ()
 Quiet NaN.
static half_float::half signaling_NaN () throw ()
 Signaling NaN.
static half_float::half denorm_min () throw ()
 Smallest positive subnormal value.

Static Public Attributes

static const bool is_specialized = true
 Is template specialization.
static const bool is_signed = true
 Supports signed values.
static const bool is_integer = false
 Is not an integer type.
static const bool is_exact = false
 Is not exact.
static const bool is_modulo = false
 Doesn't provide modulo arithmetic.
static const bool is_bounded = true
 Has a finite set of values.
static const bool is_iec559 = true
 IEEE conformant.
static const bool has_infinity = true
 Supports infinity.
static const bool has_quiet_NaN = true
 Supports quiet NaNs.
static const bool has_signaling_NaN = true
 Supports signaling NaNs.
static const float_denorm_style has_denorm = denorm_present
 Supports subnormal values.
static const bool has_denorm_loss = false
 Does not support denormalization detection.
static const bool traps = false
 Traps only if HALF_ERRHANDLING_THROW_... is acitvated.
static const bool tinyness_before = false
 Does not support pre-rounding underflow detection.
static const float_round_style round_style = half_float::half::round_style
 Rounding mode.
static const int digits = 11
 Significant digits.
static const int digits10 = 3
 Significant decimal digits.
static const int max_digits10 = 5
 Required decimal digits to represent all possible values.
static const int radix = 2
 Number base.
static const int min_exponent = -13
 One more than smallest exponent.
static const int min_exponent10 = -4
 Smallest normalized representable power of 10.
static const int max_exponent = 16
 One more than largest exponent.
static const int max_exponent10 = 4
 Largest finitely representable power of 10.

Detailed Description

Numeric limits for half-precision floats. See also: Documentation for std::numeric_limits

Member Function Documentation

◆ denorm_min()

half_float::half std::numeric_limits< half_float::half >::denorm_min ( )
throw ( )
inlinestatic

Smallest positive subnormal value.

◆ epsilon()

half_float::half std::numeric_limits< half_float::half >::epsilon ( )
throw ( )
inlinestatic

Difference between 1 and next representable value.

◆ infinity()

half_float::half std::numeric_limits< half_float::half >::infinity ( )
throw ( )
inlinestatic

Positive infinity.

◆ lowest()

half_float::half std::numeric_limits< half_float::half >::lowest ( )
throw ( )
inlinestatic

Smallest finite value.

◆ max()

half_float::half std::numeric_limits< half_float::half >::max ( )
throw ( )
inlinestatic

Largest finite value.

◆ min()

half_float::half std::numeric_limits< half_float::half >::min ( )
throw ( )
inlinestatic

Smallest positive normal value.

◆ quiet_NaN()

half_float::half std::numeric_limits< half_float::half >::quiet_NaN ( )
throw ( )
inlinestatic

Quiet NaN.

◆ round_error()

half_float::half std::numeric_limits< half_float::half >::round_error ( )
throw ( )
inlinestatic

Maximum rounding error in ULP (units in the last place).

◆ signaling_NaN()

half_float::half std::numeric_limits< half_float::half >::signaling_NaN ( )
throw ( )
inlinestatic

Signaling NaN.

Member Data Documentation

◆ digits

const int std::numeric_limits< half_float::half >::digits = 11
static

Significant digits.

◆ digits10

const int std::numeric_limits< half_float::half >::digits10 = 3
static

Significant decimal digits.

◆ has_denorm

const float_denorm_style std::numeric_limits< half_float::half >::has_denorm = denorm_present
static

Supports subnormal values.

◆ has_denorm_loss

const bool std::numeric_limits< half_float::half >::has_denorm_loss = false
static

Does not support denormalization detection.

◆ has_infinity

const bool std::numeric_limits< half_float::half >::has_infinity = true
static

Supports infinity.

◆ has_quiet_NaN

const bool std::numeric_limits< half_float::half >::has_quiet_NaN = true
static

Supports quiet NaNs.

◆ has_signaling_NaN

const bool std::numeric_limits< half_float::half >::has_signaling_NaN = true
static

Supports signaling NaNs.

◆ is_bounded

const bool std::numeric_limits< half_float::half >::is_bounded = true
static

Has a finite set of values.

◆ is_exact

const bool std::numeric_limits< half_float::half >::is_exact = false
static

Is not exact.

◆ is_iec559

const bool std::numeric_limits< half_float::half >::is_iec559 = true
static

IEEE conformant.

◆ is_integer

const bool std::numeric_limits< half_float::half >::is_integer = false
static

Is not an integer type.

◆ is_modulo

const bool std::numeric_limits< half_float::half >::is_modulo = false
static

Doesn't provide modulo arithmetic.

◆ is_signed

const bool std::numeric_limits< half_float::half >::is_signed = true
static

Supports signed values.

◆ is_specialized

const bool std::numeric_limits< half_float::half >::is_specialized = true
static

Is template specialization.

◆ max_digits10

const int std::numeric_limits< half_float::half >::max_digits10 = 5
static

Required decimal digits to represent all possible values.

◆ max_exponent

const int std::numeric_limits< half_float::half >::max_exponent = 16
static

One more than largest exponent.

◆ max_exponent10

const int std::numeric_limits< half_float::half >::max_exponent10 = 4
static

Largest finitely representable power of 10.

◆ min_exponent

const int std::numeric_limits< half_float::half >::min_exponent = -13
static

One more than smallest exponent.

◆ min_exponent10

const int std::numeric_limits< half_float::half >::min_exponent10 = -4
static

Smallest normalized representable power of 10.

◆ radix

const int std::numeric_limits< half_float::half >::radix = 2
static

Number base.

◆ round_style

const float_round_style std::numeric_limits< half_float::half >::round_style = half_float::half::round_style
static

Rounding mode.

◆ tinyness_before

const bool std::numeric_limits< half_float::half >::tinyness_before = false
static

Does not support pre-rounding underflow detection.

◆ traps

const bool std::numeric_limits< half_float::half >::traps = false
static

Traps only if HALF_ERRHANDLING_THROW_... is acitvated.


The documentation for this class was generated from the following file:
  • /Users/mickey/Documents/Projects/warptwin/warpos/clockwerk/src/core/half.hpp