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

#include <dtoa_milo.h>

Public Member Functions

 DiyFp ()
 
 DiyFp (uint64_t f, int e)
 
 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
 

Public Attributes

int e
 
uint64_t f
 

Static Public Attributes

static const int kDiySignificandSize = 64
 
static const int kDpExponentBias = 0x3FF + kDpSignificandSize
 
static const uint64_t kDpExponentMask = UINT64_C2(0x7FF00000, 0x00000000)
 
static const uint64_t kDpHiddenBit = UINT64_C2(0x00100000, 0x00000000)
 
static const int kDpMinExponent = -kDpExponentBias
 
static const uint64_t kDpSignificandMask = UINT64_C2(0x000FFFFF, 0xFFFFFFFF)
 
static const int kDpSignificandSize = 52
 

Detailed Description

Definition at line 14 of file dtoa_milo.h.

Constructor & Destructor Documentation

◆ DiyFp() [1/3]

DiyFp::DiyFp ( )
inline

Definition at line 15 of file dtoa_milo.h.

◆ DiyFp() [2/3]

DiyFp::DiyFp ( uint64_t  f,
int  e 
)
inline

Definition at line 17 of file dtoa_milo.h.

◆ DiyFp() [3/3]

DiyFp::DiyFp ( double  d)
inline

Definition at line 19 of file dtoa_milo.h.

Member Function Documentation

◆ Normalize()

DiyFp DiyFp::Normalize ( ) const
inline

Definition at line 73 of file dtoa_milo.h.

◆ NormalizeBoundary()

DiyFp DiyFp::NormalizeBoundary ( ) const
inline

Definition at line 93 of file dtoa_milo.h.

◆ NormalizedBoundaries()

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

Definition at line 110 of file dtoa_milo.h.

◆ operator*()

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

mult_round

Definition at line 43 of file dtoa_milo.h.

◆ operator-()

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

Definition at line 37 of file dtoa_milo.h.

Member Data Documentation

◆ e

int DiyFp::e

Definition at line 128 of file dtoa_milo.h.

◆ f

uint64_t DiyFp::f

Definition at line 127 of file dtoa_milo.h.

◆ kDiySignificandSize

const int DiyFp::kDiySignificandSize = 64
static

Definition at line 119 of file dtoa_milo.h.

◆ kDpExponentBias

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

Definition at line 121 of file dtoa_milo.h.

◆ kDpExponentMask

const uint64_t DiyFp::kDpExponentMask = UINT64_C2(0x7FF00000, 0x00000000)
static

Definition at line 123 of file dtoa_milo.h.

◆ kDpHiddenBit

const uint64_t DiyFp::kDpHiddenBit = UINT64_C2(0x00100000, 0x00000000)
static

Definition at line 125 of file dtoa_milo.h.

◆ kDpMinExponent

const int DiyFp::kDpMinExponent = -kDpExponentBias
static

Definition at line 122 of file dtoa_milo.h.

◆ kDpSignificandMask

const uint64_t DiyFp::kDpSignificandMask = UINT64_C2(0x000FFFFF, 0xFFFFFFFF)
static

Definition at line 124 of file dtoa_milo.h.

◆ kDpSignificandSize

const int DiyFp::kDpSignificandSize = 52
static

Definition at line 120 of file dtoa_milo.h.


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


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:02