Lines Matching refs:exponent
178 // Number of bits that represent the exponent.
182 // The bias of the exponent. (How much we need to subtract from the stored
188 // 1 sign bit, 8 exponent bits, 23 fractional bits.
202 // 1 sign bit, 11 exponent bits, 52 fractional bits.
216 // 1 sign bit, 5 exponent bits, 10 fractional bits.
281 // The least significant bit in the exponent, which is also the bit
294 // The bits that represent the exponent.
298 // How far left the exponent is shifted.
305 // The maximum representable unbiased exponent.
308 // The minimum representable exponent for normalized numbers.
320 // Returns the bits associated with the exponent, shifted to start at the
327 // Returns the exponent in unbiased form. This is the exponent in the
338 // If the number was normalized, returns the unbiased exponent.
339 // If the number was denormal, normalize the exponent first.
378 // The exponent is expected to be unbiased, meaning an exponent of
383 bool negative, int_type exponent, uint_type significand,
387 if (exponent <= min_exponent) {
395 while (exponent < min_exponent) {
397 ++exponent;
400 if (exponent == min_exponent) {
410 exponent = static_cast<int_type>(exponent + exponent_bias);
411 assert(exponent >= 0);
414 exponent = static_cast<uint_type>((exponent << exponent_left_shift) &
417 new_value = static_cast<uint_type>(new_value | (exponent | significand));
571 int_type exponent = getUnbiasedExponent();
572 if (exponent == min_exponent) {
573 // If we are denormal, normalize the exponent, so that we can encode
575 exponent = static_cast<int_type>(exponent + 1);
578 exponent = static_cast<int_type>(exponent - 1);
587 ((exponent + carried) > static_cast<int_type>(other_T::exponent_bias) ||
621 negate, static_cast<other_int_type>(exponent), rounded_significand,
669 const uint_type exponent = static_cast<uint_type>(
675 const bool is_zero = exponent == 0 && fraction == 0;
676 const bool is_denorm = exponent == 0 && !is_zero;
678 // exponent contains the biased exponent we have to convert it back into
680 int_type int_exponent = static_cast<int_type>(exponent - HF::exponent_bias);
682 // exponent.
685 // If we are denorm, then start shifting, and decreasing the exponent until
823 // either 0x0p+exponent_bias can be specified or any exponent greater than
881 int_type exponent = HF::exponent_bias;
908 // part of the float, and we have to adjust the exponent accordingly.
913 exponent = static_cast<int_type>(exponent + 1);
918 // We have not found our exponent yet, so we have to fail.
936 // Handle modifying the exponent here this way we can handle
939 exponent = static_cast<int_type>(exponent - 1);
948 // We still have not found our 'p' exponent yet, so this is not a valid
969 // Hex-floats express their exponent as decimal.
981 exponent = static_cast<int_type>(exponent + written_exponent);
986 exponent = static_cast<int_type>(exponent - 1);
988 exponent = 0;
991 if (exponent <= 0 && !is_zero) {
1002 while (exponent < 0 && !is_zero) {
1004 exponent = static_cast<int_type>(exponent + 1);
1010 exponent = 0;
1015 if (exponent > max_exponent) {
1016 exponent = max_exponent;
1025 static_cast<uint_type>(exponent << HF::exponent_left_shift) &