Public Member Functions | Public Attributes | Static Public Attributes | List of all members
internal::DiyFp Struct Reference

#include <diyfp.h>

Public Member Functions

 DiyFp ()
 
 DiyFp (uint64_t fp, int exp)
 
 DiyFp (double d)
 
DiyFp Normalize () const
 
DiyFp NormalizeBoundary () const
 
void NormalizedBoundaries (DiyFp *minus, DiyFp *plus) const
 
DiyFp operator* (const DiyFp &rhs) const
 
DiyFp operator- (const DiyFp &rhs) const
 
double ToDouble () const
 

Public Attributes

int e
 
uint64_t f
 

Static Public Attributes

static const int kDiySignificandSize = 64
 
static const int kDpDenormalExponent = -kDpExponentBias + 1
 
static const int kDpExponentBias = 0x3FF + kDpSignificandSize
 
static const uint64_t kDpExponentMask
 
static const uint64_t kDpHiddenBit
 
static const int kDpMaxExponent = 0x7FF - kDpExponentBias
 
static const int kDpMinExponent = -kDpExponentBias
 
static const uint64_t kDpSignificandMask
 
static const int kDpSignificandSize = 52
 

Detailed Description

Definition at line 48 of file diyfp.h.

Constructor & Destructor Documentation

internal::DiyFp::DiyFp ( )
inline

Definition at line 49 of file diyfp.h.

internal::DiyFp::DiyFp ( uint64_t  fp,
int  exp 
)
inline

Definition at line 51 of file diyfp.h.

internal::DiyFp::DiyFp ( double  d)
inlineexplicit

Definition at line 53 of file diyfp.h.

Member Function Documentation

DiyFp internal::DiyFp::Normalize ( ) const
inline

Definition at line 105 of file diyfp.h.

DiyFp internal::DiyFp::NormalizeBoundary ( ) const
inline

Definition at line 110 of file diyfp.h.

void internal::DiyFp::NormalizedBoundaries ( DiyFp minus,
DiyFp plus 
) const
inline

Definition at line 121 of file diyfp.h.

DiyFp internal::DiyFp::operator* ( const DiyFp rhs) const
inline

mult_round

Definition at line 73 of file diyfp.h.

DiyFp internal::DiyFp::operator- ( const DiyFp rhs) const
inline

Definition at line 71 of file diyfp.h.

double internal::DiyFp::ToDouble ( ) const
inline

Definition at line 131 of file diyfp.h.

Member Data Documentation

int internal::DiyFp::e

Definition at line 166 of file diyfp.h.

uint64_t internal::DiyFp::f

Definition at line 165 of file diyfp.h.

const int internal::DiyFp::kDiySignificandSize = 64
static

Definition at line 152 of file diyfp.h.

const int internal::DiyFp::kDpDenormalExponent = -kDpExponentBias + 1
static

Definition at line 157 of file diyfp.h.

const int internal::DiyFp::kDpExponentBias = 0x3FF + kDpSignificandSize
static

Definition at line 154 of file diyfp.h.

const uint64_t internal::DiyFp::kDpExponentMask
static
Initial value:
=
RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000)

Definition at line 158 of file diyfp.h.

const uint64_t internal::DiyFp::kDpHiddenBit
static
Initial value:
=
RAPIDJSON_UINT64_C2(0x00100000, 0x00000000)

Definition at line 162 of file diyfp.h.

const int internal::DiyFp::kDpMaxExponent = 0x7FF - kDpExponentBias
static

Definition at line 155 of file diyfp.h.

const int internal::DiyFp::kDpMinExponent = -kDpExponentBias
static

Definition at line 156 of file diyfp.h.

const uint64_t internal::DiyFp::kDpSignificandMask
static
Initial value:
=
RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF)

Definition at line 160 of file diyfp.h.

const int internal::DiyFp::kDpSignificandSize = 52
static

Definition at line 153 of file diyfp.h.


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


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