|
Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Union to compartmentalize an IEEE-754 float. More...
#include "mathutils.hh"
Public Attributes | ||
| float | v_float | |
| struct { | ||
| uint | mantissa: 23 | |
| uint | biased_exponent: 8 | |
| uint | sign: 1 | |
| } | mpn | |
| char | chars [4] | |
Static Public Attributes | |
| static constexpr const float | EPSILON |
| 2^-24, round-off error at 1.0 | |
| static constexpr const int | BIAS |
| Exponent bias. | |
| static constexpr const float | FMAX |
| 0x7f7fffff, 2^128 * (1 - epsilon) | |
| static constexpr const float | FMIN |
| 0x00800000 Minimum Normal | |
| static constexpr const float | SMAX |
| 0x007fffff Maximum Subnormal | |
| static constexpr const float | SMIN |
| 0x00000001 Minimum Subnormal | |
Union to compartmentalize an IEEE-754 float.
IEEE 754 single precision floating point layout:
Definition at line 32 of file mathutils.hh.
|
staticconstexpr |
Exponent bias.
Definition at line 43 of file mathutils.hh.
Referenced by Ase::fast_exp2(), and Ase::fast_log2().
| char Ase::FloatIEEE754::chars[4] |
Definition at line 41 of file mathutils.hh.
|
staticconstexpr |
2^-24, round-off error at 1.0
Definition at line 42 of file mathutils.hh.
|
staticconstexpr |
0x7f7fffff, 2^128 * (1 - epsilon)
Definition at line 44 of file mathutils.hh.
|
staticconstexpr |
0x00800000 Minimum Normal
Definition at line 45 of file mathutils.hh.
|
staticconstexpr |
0x007fffff Maximum Subnormal
Definition at line 46 of file mathutils.hh.
|
staticconstexpr |
0x00000001 Minimum Subnormal
Definition at line 47 of file mathutils.hh.
| float Ase::FloatIEEE754::v_float |
Definition at line 33 of file mathutils.hh.