double_conversion Namespace Reference


Classes

class  Bignum
struct  CachedPower
class  PowersOfTenCache
class  DiyFp
class  DoubleToStringConverter
class  StringToDoubleConverter
class  UInt128
class  Double
class  Single
class  Vector
class  StringBuilder

Enumerations

enum  BignumDtoaMode { BIGNUM_DTOA_SHORTEST, BIGNUM_DTOA_SHORTEST_SINGLE, BIGNUM_DTOA_FIXED, BIGNUM_DTOA_PRECISION }
enum  FastDtoaMode { FAST_DTOA_SHORTEST, FAST_DTOA_SHORTEST_SINGLE, FAST_DTOA_PRECISION }

Functions

void BignumDtoa (double v, BignumDtoaMode mode, int requested_digits, Vector< char > buffer, int *length, int *decimal_point)
bool FastDtoa (double v, FastDtoaMode mode, int requested_digits, Vector< char > buffer, int *length, int *decimal_point)
bool FastFixedDtoa (double v, int fractional_count, Vector< char > buffer, int *length, int *decimal_point)
double Strtod (Vector< const char > buffer, int exponent)
float Strtof (Vector< const char > buffer, int exponent)
int StrLength (const char *string)
template<class Dest , class Source >
Dest BitCast (const Source &source)
template<class Dest , class Source >
Dest BitCast (Source *source)

Variables

const int kMaxSignificantDigits = 772

Enumeration Type Documentation

Enumerator:
BIGNUM_DTOA_SHORTEST 
BIGNUM_DTOA_SHORTEST_SINGLE 
BIGNUM_DTOA_FIXED 
BIGNUM_DTOA_PRECISION 

Definition at line 35 of file bignum-dtoa.h.

Enumerator:
FAST_DTOA_SHORTEST 
FAST_DTOA_SHORTEST_SINGLE 
FAST_DTOA_PRECISION 

Definition at line 35 of file fast-dtoa.h.


Function Documentation

void double_conversion::BignumDtoa ( double  v,
BignumDtoaMode  mode,
int  requested_digits,
Vector< char >  buffer,
int *  length,
int *  decimal_point 
)

template<class Dest , class Source >
Dest double_conversion::BitCast ( Source *  source  )  [inline]

Definition at line 314 of file utils.h.

template<class Dest , class Source >
Dest double_conversion::BitCast ( const Source &  source  )  [inline]

Definition at line 299 of file utils.h.

bool double_conversion::FastDtoa ( double  v,
FastDtoaMode  mode,
int  requested_digits,
Vector< char >  buffer,
int *  length,
int *  decimal_point 
)

Definition at line 634 of file fast-dtoa.cc.

References ASSERT, FAST_DTOA_PRECISION, FAST_DTOA_SHORTEST, FAST_DTOA_SHORTEST_SINGLE, and UNREACHABLE.

Referenced by double_conversion::DoubleToStringConverter::DoubleToAscii().

Here is the caller graph for this function:

bool double_conversion::FastFixedDtoa ( double  v,
int  fractional_count,
Vector< char >  buffer,
int *  length,
int *  decimal_point 
)

Definition at line 307 of file fixed-dtoa.cc.

References ASSERT, and UINT64_2PART_C.

Referenced by double_conversion::DoubleToStringConverter::DoubleToAscii().

Here is the caller graph for this function:

int double_conversion::StrLength ( const char *  string  )  [inline]

Definition at line 147 of file utils.h.

References ASSERT.

Referenced by double_conversion::StringBuilder::AddString().

Here is the caller graph for this function:

double double_conversion::Strtod ( Vector< const char >  buffer,
int  exponent 
)

Definition at line 448 of file strtod.cc.

float double_conversion::Strtof ( Vector< const char >  buffer,
int  exponent 
)

Definition at line 474 of file strtod.cc.

References ASSERT, and sapt::next().

Here is the call graph for this function:


Variable Documentation

Definition at line 440 of file double-conversion.cc.


Generated on Thu Jul 6 00:32:37 2017 for Moses by  doxygen 1.5.9