Searched refs:DiyFp (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | diyfp.h | 38 struct DiyFp { struct 39 DiyFp() {} in DiyFp() argument 41 DiyFp(uint64_t fp, int exp) : f(fp), e(exp) {} in DiyFp() function 43 explicit DiyFp(double d) { in DiyFp() function 61 DiyFp operator-(const DiyFp& rhs) const { 62 return DiyFp(f - rhs.f, e); 65 DiyFp operator*(const DiyFp& rhs) const { 71 return DiyFp(h, e + rhs.e + 64); argument 79 return DiyFp(h, e + rhs.e + 64); 92 return DiyFp(ac + (ad >> 32) + (bc >> 32) + (tmp >> 32), e + rhs.e + 64); [all …]
|
D | strtod.h | 148 DiyFp v(significand, 0); in StrtodDiyFp() 155 DiyFp cachedPower = GetCachedPower10(dExp, &actualExp); in StrtodDiyFp() 157 static const DiyFp kPow10[] = { in StrtodDiyFp() 158 DiyFp(RAPIDJSON_UINT64_C2(0xa0000000, 00000000), -60), // 10^1 in StrtodDiyFp() 159 DiyFp(RAPIDJSON_UINT64_C2(0xc8000000, 00000000), -57), // 10^2 in StrtodDiyFp() 160 DiyFp(RAPIDJSON_UINT64_C2(0xfa000000, 00000000), -54), // 10^3 in StrtodDiyFp() 161 DiyFp(RAPIDJSON_UINT64_C2(0x9c400000, 00000000), -50), // 10^4 in StrtodDiyFp() 162 DiyFp(RAPIDJSON_UINT64_C2(0xc3500000, 00000000), -47), // 10^5 in StrtodDiyFp() 163 DiyFp(RAPIDJSON_UINT64_C2(0xf4240000, 00000000), -44), // 10^6 in StrtodDiyFp() 164 DiyFp(RAPIDJSON_UINT64_C2(0x98968000, 00000000), -40) // 10^7 in StrtodDiyFp() [all …]
|
D | dtoa.h | 59 inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* … in DigitGen() 61 const DiyFp one(uint64_t(1) << -Mp.e, Mp.e); in DigitGen() 62 const DiyFp wp_w = Mp - W; in DigitGen() 111 const DiyFp v(value); in Grisu2() 112 DiyFp w_m, w_p; in Grisu2() 115 const DiyFp c_mk = GetCachedPower(w_p.e, K); in Grisu2() 116 const DiyFp W = v.Normalize() * c_mk; in Grisu2() 117 DiyFp Wp = w_p * c_mk; in Grisu2() 118 DiyFp Wm = w_m * c_mk; in Grisu2()
|