| 47 | } |
| 48 | |
| 49 | static 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 | |
| 57 | TEST(F64toa, Basic) { |
| 58 | TestF64toa("0.0", 0.0); |
no test coverage detected