一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
std::numeric_limits< ein::fp16 > Class Reference

#include <fp16.hpp>

Static Public Member Functions

static constexpr ein::fp16 min () noexcept
 
static constexpr ein::fp16 max () noexcept
 
static constexpr ein::fp16 lowest () noexcept
 
static constexpr ein::fp16 epsilon () noexcept
 
static constexpr ein::fp16 round_error () noexcept
 
static constexpr ein::fp16 infinity () noexcept
 
static constexpr ein::fp16 quiet_NaN () noexcept
 
static constexpr ein::fp16 signaling_NaN () noexcept
 
static constexpr ein::fp16 denorm_min () noexcept
 

Static Public Attributes

static constexpr bool is_specialized = true
 
static constexpr int digits = 11
 
static constexpr int digits10 = 3
 
static constexpr bool is_signed = true
 
static constexpr bool is_integer = false
 
static constexpr bool is_exact = false
 
static constexpr int radix = 2
 
static constexpr int min_exponent = -13
 
static constexpr int min_exponent10 = -4
 
static constexpr int max_exponent = 16
 
static constexpr int max_exponent10 = 4
 
static constexpr bool has_infinity = true
 
static constexpr bool has_quiet_NaN = true
 
static constexpr bool has_signaling_NaN = true
 
static constexpr float_denorm_style has_denorm = denorm_absent
 
static constexpr bool has_denorm_loss = false
 
static constexpr bool is_iec559 = false
 
static constexpr bool is_bounded = false
 
static constexpr bool is_modulo = false
 
static constexpr bool traps = false
 
static constexpr bool tinyness_before = false
 
static constexpr float_round_style round_style = round_to_nearest
 

Detailed Description

Definition at line 123 of file fp16.hpp.

Member Function Documentation

◆ denorm_min()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::denorm_min ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 174 of file fp16.hpp.

174 {
175 return ein::fp16::from_bits(0);
176 }
static constexpr fp16 from_bits(uint16_t data) noexcept
Definition fp16.hpp:97

References ein::fp16::from_bits().

◆ epsilon()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::epsilon ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 145 of file fp16.hpp.

145 {
146 return ein::fp16::from_bits(0x1200);
147 }

References ein::fp16::from_bits().

◆ infinity()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::infinity ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 162 of file fp16.hpp.

162 {
163 return ein::fp16::from_bits(0x7C00);
164 }

References ein::fp16::from_bits().

◆ lowest()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::lowest ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 135 of file fp16.hpp.

135 {
136 return ein::fp16::from_bits(0xFBFF);
137 }

References ein::fp16::from_bits().

◆ max()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::max ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 131 of file fp16.hpp.

131 {
132 return ein::fp16::from_bits(0x7BFF);
133 }

References ein::fp16::from_bits().

◆ min()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::min ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 127 of file fp16.hpp.

127 {
128 return ein::fp16::from_bits(0x0200);
129 }

References ein::fp16::from_bits().

◆ quiet_NaN()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::quiet_NaN ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 166 of file fp16.hpp.

166 {
167 return ein::fp16::from_bits(0x7FFF);
168 }

References ein::fp16::from_bits().

◆ round_error()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::round_error ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 149 of file fp16.hpp.

149 {
150 return ein::fp16::from_bits(0x3C00);
151 }

References ein::fp16::from_bits().

◆ signaling_NaN()

static constexpr ein::fp16 std::numeric_limits< ein::fp16 >::signaling_NaN ( )
inlinestaticconstexprnoexcept[[always_inline]][[artificial]][[const]]

Definition at line 170 of file fp16.hpp.

170 {
171 return ein::fp16::from_bits(0x7DFF);
172 }

References ein::fp16::from_bits().

Member Data Documentation

◆ digits

int std::numeric_limits< ein::fp16 >::digits = 11
staticconstexpr

Definition at line 138 of file fp16.hpp.

◆ digits10

int std::numeric_limits< ein::fp16 >::digits10 = 3
staticconstexpr

Definition at line 139 of file fp16.hpp.

◆ has_denorm

float_denorm_style std::numeric_limits< ein::fp16 >::has_denorm = denorm_absent
staticconstexpr

Definition at line 159 of file fp16.hpp.

◆ has_denorm_loss

bool std::numeric_limits< ein::fp16 >::has_denorm_loss = false
staticconstexpr

Definition at line 160 of file fp16.hpp.

◆ has_infinity

bool std::numeric_limits< ein::fp16 >::has_infinity = true
staticconstexpr

Definition at line 156 of file fp16.hpp.

◆ has_quiet_NaN

bool std::numeric_limits< ein::fp16 >::has_quiet_NaN = true
staticconstexpr

Definition at line 157 of file fp16.hpp.

◆ has_signaling_NaN

bool std::numeric_limits< ein::fp16 >::has_signaling_NaN = true
staticconstexpr

Definition at line 158 of file fp16.hpp.

◆ is_bounded

bool std::numeric_limits< ein::fp16 >::is_bounded = false
staticconstexpr

Definition at line 178 of file fp16.hpp.

◆ is_exact

bool std::numeric_limits< ein::fp16 >::is_exact = false
staticconstexpr

Definition at line 142 of file fp16.hpp.

◆ is_iec559

bool std::numeric_limits< ein::fp16 >::is_iec559 = false
staticconstexpr

Definition at line 177 of file fp16.hpp.

◆ is_integer

bool std::numeric_limits< ein::fp16 >::is_integer = false
staticconstexpr

Definition at line 141 of file fp16.hpp.

◆ is_modulo

bool std::numeric_limits< ein::fp16 >::is_modulo = false
staticconstexpr

Definition at line 179 of file fp16.hpp.

◆ is_signed

bool std::numeric_limits< ein::fp16 >::is_signed = true
staticconstexpr

Definition at line 140 of file fp16.hpp.

◆ is_specialized

bool std::numeric_limits< ein::fp16 >::is_specialized = true
staticconstexpr

Definition at line 125 of file fp16.hpp.

◆ max_exponent

int std::numeric_limits< ein::fp16 >::max_exponent = 16
staticconstexpr

Definition at line 154 of file fp16.hpp.

◆ max_exponent10

int std::numeric_limits< ein::fp16 >::max_exponent10 = 4
staticconstexpr

Definition at line 155 of file fp16.hpp.

◆ min_exponent

int std::numeric_limits< ein::fp16 >::min_exponent = -13
staticconstexpr

Definition at line 152 of file fp16.hpp.

◆ min_exponent10

int std::numeric_limits< ein::fp16 >::min_exponent10 = -4
staticconstexpr

Definition at line 153 of file fp16.hpp.

◆ radix

int std::numeric_limits< ein::fp16 >::radix = 2
staticconstexpr

Definition at line 143 of file fp16.hpp.

◆ round_style

float_round_style std::numeric_limits< ein::fp16 >::round_style = round_to_nearest
staticconstexpr

Definition at line 182 of file fp16.hpp.

◆ tinyness_before

bool std::numeric_limits< ein::fp16 >::tinyness_before = false
staticconstexpr

Definition at line 181 of file fp16.hpp.

◆ traps

bool std::numeric_limits< ein::fp16 >::traps = false
staticconstexpr

Definition at line 180 of file fp16.hpp.


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