Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
internal::Double Class Reference

#include <ieee754.h>

Public Member Functions

 Double ()
 
 Double (double d)
 
 Double (uint64_t u)
 
int Exponent () const
 
int IntegerExponent () const
 
uint64_t IntegerSignificand () const
 
bool IsInf () const
 
bool IsNan () const
 
bool IsNanOrInf () const
 
bool IsNormal () const
 
bool IsZero () const
 
double NextPositiveDouble () const
 
bool Sign () const
 
uint64_t Significand () const
 
uint64_t ToBias () const
 
uint64_t Uint64Value () const
 
double Value () const
 

Static Public Member Functions

static int EffectiveSignificandSize (int order)
 

Private Attributes

union {
   double   d_
 
   uint64_t   u_
 
}; 
 

Static Private Attributes

static const int kDenormalExponent = 1 - kExponentBias
 
static const int kExponentBias = 0x3FF
 
static const uint64_t kExponentMask = RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000)
 
static const uint64_t kHiddenBit = RAPIDJSON_UINT64_C2(0x00100000, 0x00000000)
 
static const uint64_t kSignificandMask = RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF)
 
static const int kSignificandSize = 52
 
static const uint64_t kSignMask = RAPIDJSON_UINT64_C2(0x80000000, 0x00000000)
 

Detailed Description

Definition at line 23 of file ieee754.h.

Constructor & Destructor Documentation

internal::Double::Double ( )
inline

Definition at line 26 of file ieee754.h.

internal::Double::Double ( double  d)
inline

Definition at line 29 of file ieee754.h.

internal::Double::Double ( uint64_t  u)
inline

Definition at line 32 of file ieee754.h.

Member Function Documentation

static int internal::Double::EffectiveSignificandSize ( int  order)
inlinestatic

Definition at line 98 of file ieee754.h.

int internal::Double::Exponent ( ) const
inline

Definition at line 59 of file ieee754.h.

int internal::Double::IntegerExponent ( ) const
inline

Definition at line 89 of file ieee754.h.

uint64_t internal::Double::IntegerSignificand ( ) const
inline

Definition at line 85 of file ieee754.h.

bool internal::Double::IsInf ( ) const
inline

Definition at line 68 of file ieee754.h.

bool internal::Double::IsNan ( ) const
inline

Definition at line 64 of file ieee754.h.

bool internal::Double::IsNanOrInf ( ) const
inline

Definition at line 72 of file ieee754.h.

bool internal::Double::IsNormal ( ) const
inline

Definition at line 76 of file ieee754.h.

bool internal::Double::IsZero ( ) const
inline

Definition at line 80 of file ieee754.h.

double internal::Double::NextPositiveDouble ( ) const
inline

Definition at line 45 of file ieee754.h.

bool internal::Double::Sign ( ) const
inline

Definition at line 51 of file ieee754.h.

uint64_t internal::Double::Significand ( ) const
inline

Definition at line 55 of file ieee754.h.

uint64_t internal::Double::ToBias ( ) const
inline

Definition at line 93 of file ieee754.h.

uint64_t internal::Double::Uint64Value ( ) const
inline

Definition at line 40 of file ieee754.h.

double internal::Double::Value ( ) const
inline

Definition at line 36 of file ieee754.h.

Member Data Documentation

union { ... }
double internal::Double::d_

Definition at line 119 of file ieee754.h.

const int internal::Double::kDenormalExponent = 1 - kExponentBias
staticprivate

Definition at line 111 of file ieee754.h.

const int internal::Double::kExponentBias = 0x3FF
staticprivate

Definition at line 110 of file ieee754.h.

const uint64_t internal::Double::kExponentMask = RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000)
staticprivate

Definition at line 113 of file ieee754.h.

const uint64_t internal::Double::kHiddenBit = RAPIDJSON_UINT64_C2(0x00100000, 0x00000000)
staticprivate

Definition at line 115 of file ieee754.h.

const uint64_t internal::Double::kSignificandMask = RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF)
staticprivate

Definition at line 114 of file ieee754.h.

const int internal::Double::kSignificandSize = 52
staticprivate

Definition at line 109 of file ieee754.h.

const uint64_t internal::Double::kSignMask = RAPIDJSON_UINT64_C2(0x80000000, 0x00000000)
staticprivate

Definition at line 112 of file ieee754.h.

uint64_t internal::Double::u_

Definition at line 120 of file ieee754.h.


The documentation for this class was generated from the following file:


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54