#include <cFloat.h>
|
| static const UINT64 | k_SIGN_MASK = 0x8000000000000000ULL |
| | 1 bit = value sign (Sign_bit) More...
|
| |
| static const UINT64 | k_EXP_MASK = 0x7FF0000000000000ULL |
| | 11 bits = signed exponent (base 2) More...
|
| |
| static const UINT64 | k_MANT_MASK = 0x000FFFFFFFFFFFFFULL |
| | 52 bits = fractional mantissa More...
|
| |
| static const UINT32 | k_MANT_BITS = 52 |
| | 52 bits = fractional mantissa More...
|
| |
pack/unpack IEEE float64/double http://en.wikipedia.org/wiki/IEEE_754-1985 Use DBL_MAX
◆ cFloat64() [1/2]
| Gray::cFloat64::cFloat64 |
( |
| ) |
|
|
inlinenoexcept |
◆ cFloat64() [2/2]
| Gray::cFloat64::cFloat64 |
( |
double |
d | ) |
|
|
inlinenoexcept |
◆ fromBits()
| static double Gray::cFloat64::fromBits |
( |
UINT64 |
src | ) |
|
|
inlinestaticnoexcept |
reinterpret an UINT64 as a double Warning in GNUC reinterpret_ warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
◆ get_Mantissa()
| UINT64 Gray::cFloat64::get_Mantissa |
( |
| ) |
const |
|
inlinenoexcept |
◆ put_Bits()
| void Gray::cFloat64::put_Bits |
( |
UINT64 |
qw | ) |
|
|
inlinenoexcept |
◆ toBits()
| static UINT64 Gray::cFloat64::toBits |
( |
double |
src | ) |
|
|
inlinestaticnoexcept |
reinterpret a double as an UINT64 Warning in GNUC reinterpret_ warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
◆ k_EXP_MASK
| const UINT64 Gray::cFloat64::k_EXP_MASK = 0x7FF0000000000000ULL |
|
static |
11 bits = signed exponent (base 2)
◆ k_MANT_BITS
| const UINT32 Gray::cFloat64::k_MANT_BITS = 52 |
|
static |
52 bits = fractional mantissa
◆ k_MANT_MASK
| const UINT64 Gray::cFloat64::k_MANT_MASK = 0x000FFFFFFFFFFFFFULL |
|
static |
52 bits = fractional mantissa
◆ k_SIGN_MASK
| const UINT64 Gray::cFloat64::k_SIGN_MASK = 0x8000000000000000ULL |
|
static |
1 bit = value sign (Sign_bit)
◆ m_v
The documentation for this class was generated from the following file:
- c:/Dennis/Source/Gray/GrayCore/include/cFloat.h