 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
15 #ifndef RAPIDJSON_IEEE754_
16 #define RAPIDJSON_IEEE754_
18 #include "../rapidjson.h"
37 bool Sign()
const {
return (
u_ & kSignMask) != 0; }
39 int Exponent()
const {
return static_cast<int>(((
u_ & kExponentMask) >> kSignificandSize) - kExponentBias); }
43 bool IsNanOrInf()
const {
return (
u_ & kExponentMask) == kExponentMask; }
45 bool IsZero()
const {
return (
u_ & (kExponentMask | kSignificandMask)) == 0; }
54 else if (order <= -1074)
61 static const int kSignificandSize = 52;
62 static const int kExponentBias = 0x3FF;
63 static const int kDenormalExponent = 1 - kExponentBias;
78 #endif // RAPIDJSON_IEEE754_
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:124
uint64_t Uint64Value() const
Definition: ieee754.h:30
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:121
uint64_t ToBias() const
Definition: ieee754.h:49
static int EffectiveSignificandSize(int order)
Definition: ieee754.h:51
double Value() const
Definition: ieee754.h:29
Double(double d)
Definition: ieee754.h:26
int Exponent() const
Definition: ieee754.h:39
unsigned long long uint64_t
Definition: stdint.h:18
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:437
bool IsZero() const
Definition: ieee754.h:45
bool IsNan() const
Definition: ieee754.h:41
int IntegerExponent() const
Definition: ieee754.h:48
uint64_t Significand() const
Definition: ieee754.h:38
uint64_t IntegerSignificand() const
Definition: ieee754.h:47
Double(uint64_t u)
Definition: ieee754.h:27
bool IsInf() const
Definition: ieee754.h:42
double d_
Definition: ieee754.h:70
bool Sign() const
Definition: ieee754.h:37
bool IsNanOrInf() const
Definition: ieee754.h:43
Definition: allocators.h:422
bool IsNormal() const
Definition: ieee754.h:44
double NextPositiveDouble() const
Definition: ieee754.h:32
Double()
Definition: ieee754.h:25
#define RAPIDJSON_UINT64_C2(high32, low32)
Construct a 64-bit literal by a pair of 32-bit integer.
Definition: rapidjson.h:320
uint64_t u_
Definition: ieee754.h:71