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
 
static const uint64_t kHiddenBit
 
static const uint64_t kSignificandMask
 
static const int kSignificandSize = 52
 
static const uint64_t kSignMask = RAPIDJSON_UINT64_C2(0x80000000, 0x00000000)
 

Detailed Description

Definition at line 27 of file ieee754.h.

Constructor & Destructor Documentation

internal::Double::Double ( )
inline

Definition at line 29 of file ieee754.h.

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

Definition at line 30 of file ieee754.h.

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

Definition at line 31 of file ieee754.h.

Member Function Documentation

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

Definition at line 70 of file ieee754.h.

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

Definition at line 43 of file ieee754.h.

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

Definition at line 63 of file ieee754.h.

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

Definition at line 60 of file ieee754.h.

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

Definition at line 51 of file ieee754.h.

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

Definition at line 48 of file ieee754.h.

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

Definition at line 54 of file ieee754.h.

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

Definition at line 55 of file ieee754.h.

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

Definition at line 58 of file ieee754.h.

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

Definition at line 36 of file ieee754.h.

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

Definition at line 41 of file ieee754.h.

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

Definition at line 42 of file ieee754.h.

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

Definition at line 66 of file ieee754.h.

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

Definition at line 34 of file ieee754.h.

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

Definition at line 33 of file ieee754.h.

Member Data Documentation

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

Definition at line 92 of file ieee754.h.

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

Definition at line 82 of file ieee754.h.

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

Definition at line 81 of file ieee754.h.

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

Definition at line 84 of file ieee754.h.

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

Definition at line 88 of file ieee754.h.

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

Definition at line 86 of file ieee754.h.

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

Definition at line 80 of file ieee754.h.

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

Definition at line 83 of file ieee754.h.

uint64_t internal::Double::u_

Definition at line 93 of file ieee754.h.


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


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46