RetroArch
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 operator- (const DiyFp &rhs) const
 
DiyFp operator* (const DiyFp &rhs) const
 
DiyFp Normalize () const
 
DiyFp NormalizeBoundary () const
 
void NormalizedBoundaries (DiyFp *minus, DiyFp *plus) const
 
double ToDouble () const
 

Public Attributes

uint64_t f
 
int e
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ DiyFp() [1/3]

internal::DiyFp::DiyFp ( )
inline
Here is the caller graph for this function:

◆ DiyFp() [2/3]

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

◆ DiyFp() [3/3]

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

Member Function Documentation

◆ Normalize()

DiyFp internal::DiyFp::Normalize ( ) const
inline
Here is the call graph for this function:

◆ NormalizeBoundary()

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

◆ NormalizedBoundaries()

void internal::DiyFp::NormalizedBoundaries ( DiyFp minus,
DiyFp plus 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*()

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

mult_round

Here is the call graph for this function:

◆ operator-()

DiyFp internal::DiyFp::operator- ( const DiyFp rhs) const
inline
Here is the call graph for this function:

◆ ToDouble()

double internal::DiyFp::ToDouble ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ e

int internal::DiyFp::e

◆ f

uint64_t internal::DiyFp::f

◆ kDiySignificandSize

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

◆ kDpDenormalExponent

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

◆ kDpExponentBias

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

◆ kDpExponentMask

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

◆ kDpHiddenBit

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

◆ kDpMaxExponent

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

◆ kDpMinExponent

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

◆ kDpSignificandMask

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

◆ kDpSignificandSize

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

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