* try to fix precision error on x86 platform step6.

This commit is contained in:
IRainman 2025-11-08 21:38:15 +03:00
parent cd62aadb1b
commit df6b574e40

View File

@ -446,11 +446,11 @@ typedef int_fast8_t am_bits_t;
// Power bias is signed for handling a denormal float
// or an invalid mantissa.
typedef int64_t am_pow_t; // can't be int_fast16_t because invalid_am_bias
typedef int16_t am_pow_t; // can't be int_fast16_t because invalid_am_bias
// hacks. Needs rewriting this.
// Bias so we can get the real exponent with an invalid adjusted_mantissa.
constexpr static am_pow_t invalid_am_bias = -0x800000000000000;
constexpr static am_pow_t invalid_am_bias = -0x8000;
struct adjusted_mantissa {
am_mant_t mantissa;