Lines Matching defs:mantissa
93 // formula: floor((mantissa * 2^exponent)/10^i) % 10^9.
101 // when multiplying by the mantissa we reverse this by dividing by 2^c, like so:
102 // floor((mantissa * table[exponent][i])/(2^c)) % 10^9.
135 // conversion to get an explicit mantissa of 0x13441350fbd738 and an exponent
136 // of -2 (which becomes -54 when we shift the mantissa to be a non-fractional
137 // number). Next I shifted the mantissa right 12 bits to create more space for
169 // index (which is ceil(exponent/16)) and mantissa width could need.
376 LIBC_INLINE uint32_t mul_shift_mod_1e9(const FPBits::StorageType mantissa,
382 val = (val * mantissa) >> shift_amount;
409 FPBits::StorageType mantissa;
417 mantissa = float_bits.get_explicit_mantissa();
419 // Adjust for the width of the mantissa.
485 internal::mul_shift_mod_1e9(mantissa, val, (int32_t)(shift_amount));
546 internal::mul_shift_mod_1e9(mantissa, val, shift_amount);
622 FPBits::StorageType mantissa = 0;
668 // the mantissa and exponent of the initial number. Calling it will always
672 if (mantissa == 0 && exponent == 0)
683 wide_int float_as_int = mantissa;
700 float_as_fixed = mantissa;
732 mantissa = float_bits.get_explicit_mantissa();
734 // Adjust for the width of the mantissa.