#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 | IsNanOrInf () const |
bool | IsNormal () const |
bool | IsZero () const |
uint64_t | IntegerSignificand () const |
int | IntegerExponent () const |
uint64_t | ToBias () const |
Static Public Member Functions | |
static int | 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) |
|
inlinestatic |
|
inline |
|
inline |
union { ... } |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |