Lines Matching refs:HF
739 using HF = HexFloat<T, Traits>;
740 using uint_type = typename HF::uint_type;
741 using int_type = typename HF::int_type;
743 static_assert(HF::num_used_bits != 0,
745 static_assert(HF::num_exponent_bits != 0,
747 static_assert(HF::num_fraction_bits != 0,
751 const char* const sign = (bits & HF::sign_mask) ? "-" : "";
753 (bits & HF::exponent_mask) >> HF::num_fraction_bits);
755 uint_type fraction = static_cast<uint_type>((bits & HF::fraction_encode_mask)
756 << HF::num_overflow_bits);
763 int_type int_exponent = static_cast<int_type>(exponent - HF::exponent_bias);
772 while ((fraction & HF::fraction_top_bit) == 0) {
779 fraction &= HF::fraction_represent_mask;
782 uint_type fraction_nibbles = HF::fraction_nibbles;
919 using HF = HexFloat<T, Traits>;
920 using uint_type = typename HF::uint_type;
921 using int_type = typename HF::int_type;
923 value.set_value(static_cast<typename HF::native_type>(0.f));
964 int_type exponent = HF::exponent_bias;
995 write_bit << (HF::top_bit_left_shift - fraction_index++)));
1027 write_bit << (HF::top_bit_left_shift - fraction_index++)));
1076 fraction |= static_cast<uint_type>(1) << HF::top_bit_left_shift;
1079 fraction = (fraction >> HF::fraction_right_shift) & HF::fraction_encode_mask;
1082 SetBits<uint_type, 0, HF::num_exponent_bits>::get;
1089 fraction &= HF::fraction_encode_mask;
1104 static_cast<uint_type>(negate_value ? 1 : 0) << HF::top_bit_left_shift);
1108 static_cast<uint_type>(exponent << HF::exponent_left_shift) &
1109 HF::exponent_mask);