NGL
6.5
The NCCA Graphics Library
|
#include <ieee754.h>
Public Member Functions | |
Double () | |
Double (double d) | |
Double (uint64_t u) | |
double | Value () const |
uint64_t | Uint64Value () const |
double | NextPositiveDouble () const |
bool | Sign () const |
uint64_t | Significand () const |
int | Exponent () const |
bool | IsNan () const |
bool | IsInf () const |
bool | IsNormal () const |
bool | IsZero () const |
uint64_t | IntegerSignificand () const |
int | IntegerExponent () const |
uint64_t | ToBias () const |
Static Public Member Functions | |
static unsigned | EffectiveSignificandSize (int order) |
Private Attributes | |
union { | |
double d_ | |
uint64_t u_ | |
}; | |
Static Private Attributes | |
static const int | kSignificandSize = 52 |
static const int | kExponentBias = 0x3FF |
static const int | kDenormalExponent = 1 - kExponentBias |
static const uint64_t | kSignMask = RAPIDJSON_UINT64_C2(0x80000000, 0x00000000) |
static const uint64_t | kExponentMask = RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000) |
static const uint64_t | kSignificandMask = RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF) |
static const uint64_t | kHiddenBit = RAPIDJSON_UINT64_C2(0x00100000, 0x00000000) |
|
inline |
|
inlinestatic |
|
inline |
Definition at line 39 of file ieee754.h.
References kExponentBias, kExponentMask, kSignificandSize, and u_.
|
inline |
Definition at line 47 of file ieee754.h.
References Exponent(), IsNormal(), kDenormalExponent, and kSignificandSize.
|
inline |
Definition at line 46 of file ieee754.h.
References IsNormal(), kHiddenBit, and Significand().
|
inline |
Definition at line 42 of file ieee754.h.
References kExponentMask, Significand(), and u_.
|
inline |
Definition at line 41 of file ieee754.h.
References kExponentMask, Significand(), and u_.
|
inline |
Definition at line 43 of file ieee754.h.
References kExponentMask, Significand(), and u_.
|
inline |
Definition at line 44 of file ieee754.h.
References kExponentMask, kSignificandMask, and u_.
|
inline |
|
inline |
|
inline |
Definition at line 38 of file ieee754.h.
References kSignificandMask, and u_.
|
inline |
|
inline |
|
inline |
union { ... } |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |