MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / ieeeParts2Double

Function ieeeParts2Double

tests/ftoa_test.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static double ieeeParts2Double(const bool sign, const uint32_t ieeeExponent,
50 const uint64_t ieeeMantissa) {
51 assert(ieeeExponent <= 2047);
52 assert(ieeeMantissa <= ((uint64_t)1 << 53) - 1);
53 return int64Bits2Double(((uint64_t)sign << 63) |
54 ((uint64_t)ieeeExponent << 52) | ieeeMantissa);
55}
56
57TEST(F64toa, Basic) {
58 TestF64toa("0.0", 0.0);

Callers 1

TESTFunction · 0.85

Calls 1

int64Bits2DoubleFunction · 0.85

Tested by

no test coverage detected