Lines Matching defs:fraction
271 // The representation of the fraction, not the actual bits. This
277 // The topmost bit in the nibble-aligned fraction.
286 // The mask for the encoded fraction. It does not include the
301 // How far from the right edge the fraction is shifted.
672 uint_type fraction = static_cast<uint_type>((bits & HF::fraction_encode_mask)
675 const bool is_zero = exponent == 0 && fraction == 0;
689 while ((fraction & HF::fraction_top_bit) == 0) {
690 fraction = static_cast<uint_type>(fraction << 1);
695 fraction = static_cast<uint_type>(fraction << 1); // eat the leading 1
696 fraction &= HF::fraction_represent_mask;
702 while (fraction_nibbles > 0 && (fraction & 0xF) == 0) {
704 fraction = static_cast<uint_type>(fraction >> 4);
716 << std::setfill('0') << std::hex << fraction;
880 uint_type fraction = 0;
909 fraction = static_cast<uint_type>(
910 fraction |
941 fraction = static_cast<uint_type>(
942 fraction |
983 bool is_zero = is_denorm && (fraction == 0);
985 fraction = static_cast<uint_type>(fraction << 1);
992 fraction = static_cast<uint_type>(fraction >> 1);
993 fraction |= static_cast<uint_type>(1) << HF::top_bit_left_shift;
996 fraction = (fraction >> HF::fraction_right_shift) & HF::fraction_encode_mask;
1003 fraction = static_cast<uint_type>(fraction >> 1);
1006 fraction &= HF::fraction_encode_mask;
1007 if (fraction == 0) {
1008 // We have underflowed our fraction. We should clamp to zero.
1017 fraction = 0;
1022 output_bits |= fraction;