#include <diyfp.h>
Public Member Functions | |
DiyFp () | |
DiyFp (uint64_t fp, int exp) | |
DiyFp (double d) | |
DiyFp | operator- (const DiyFp &rhs) const |
DiyFp | operator* (const DiyFp &rhs) const |
DiyFp | Normalize () const |
DiyFp | NormalizeBoundary () const |
void | NormalizedBoundaries (DiyFp *minus, DiyFp *plus) const |
double | ToDouble () const |
Public Attributes | |
uint64_t | f |
int | e |
Static Public Attributes | |
static const int | kDiySignificandSize = 64 |
static const int | kDpSignificandSize = 52 |
static const int | kDpExponentBias = 0x3FF + kDpSignificandSize |
static const int | kDpMaxExponent = 0x7FF - kDpExponentBias |
static const int | kDpMinExponent = -kDpExponentBias |
static const int | kDpDenormalExponent = -kDpExponentBias + 1 |
static const uint64_t | kDpExponentMask = RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000) |
static const uint64_t | kDpSignificandMask = RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF) |
static const uint64_t | kDpHiddenBit = RAPIDJSON_UINT64_C2(0x00100000, 0x00000000) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |