#ifndef RYU_GENERIC128_H
#define RYU_GENERIC128_H
-
-typedef __uint128_t uint128_t;
-
#define FLOAT_128_POW5_INV_BITCOUNT 249
#define FLOAT_128_POW5_BITCOUNT 249
#define POW5_TABLE_SIZE 56
// A floating decimal representing (-1)^s * m * 10^e.
struct floating_decimal_128 {
- __uint128_t mantissa;
+ uint128_t mantissa;
int32_t exponent;
bool sign;
};
// Converts the given binary floating point number to the shortest decimal floating point number
// that still accurately represents it.
struct floating_decimal_128 generic_binary_to_decimal(
- const __uint128_t bits, const uint32_t mantissaBits, const uint32_t exponentBits, const bool explicitLeadingBit);
+ const uint128_t bits, const uint32_t mantissaBits, const uint32_t exponentBits, const bool explicitLeadingBit);
// Converts the given decimal floating point number to a string, writing to result, and returning
// the number characters written. Does not terminate the buffer with a 0. In the worst case, this