Lines Matching refs:static_cast
120 return static_cast<uint_type>(data_ ^
303 static_cast<uint32_t>(sizeof(uint_type) * 8) - num_fraction_bits;
309 static const int_type min_exponent = -static_cast<int_type>(exponent_bias);
316 return static_cast<uint_type>(spvutils::BitwiseCast<uint_type>(value_) &
323 return static_cast<uint_type>((getBits() & exponent_mask) >>
330 return static_cast<int_type>(getExponentBits() - exponent_bias);
348 significand_bits = static_cast<uint_type>(significand_bits << 1);
349 exp = static_cast<int_type>(exp - 1);
361 significand = static_cast<uint_type>(significand << 1);
392 significand = static_cast<uint_type>(significand >> 1);
396 significand = static_cast<uint_type>(significand >> 1);
402 significand = static_cast<uint_type>(0x1);
408 new_value = static_cast<uint_type>(new_value | sign_mask);
410 exponent = static_cast<int_type>(exponent + exponent_bias);
414 exponent = static_cast<uint_type>((exponent << exponent_left_shift) &
416 significand = static_cast<uint_type>(significand & fraction_encode_mask);
417 new_value = static_cast<uint_type>(new_value | (exponent | significand));
429 significand = static_cast<uint_type>(significand + to_increment);
435 significand = static_cast<uint_type>(significand & ~first_exponent_bit);
436 significand = static_cast<uint_type>(significand >> 1);
473 static_cast<int_type>(num_fraction_bits) -
474 static_cast<int_type>(other_T::num_fraction_bits);
495 out_val = static_cast<other_uint_type>(significand);
496 uint_type shift_amount = static_cast<uint_type>(-num_throwaway_bits);
497 out_val = static_cast<other_uint_type>(out_val << shift_amount);
504 return static_cast<other_uint_type>(
541 return static_cast<other_uint_type>(
545 return static_cast<other_uint_type>(
558 other = other_T(static_cast<typename other_T::native_type>(0));
575 exponent = static_cast<int_type>(exponent + 1);
577 check_bit = static_cast<uint_type>(check_bit >> 1)) {
578 exponent = static_cast<int_type>(exponent - 1);
587 ((exponent + carried) > static_cast<int_type>(other_T::exponent_bias) ||
593 static_cast<typename other_T::uint_type>(
599 shifted_significand = static_cast<typename other_T::uint_type>(
601 static_cast<int_type>(other_T::num_fraction_bits) -
602 static_cast<int_type>(num_fraction_bits), significand));
608 static_cast<typename other_T::uint_type>(
621 negate, static_cast<other_int_type>(exponent), rounded_significand,
642 return static_cast<uint8_t>(p - dec);
644 return static_cast<uint8_t>(p - lower + 0xa);
646 return static_cast<uint8_t>(p - upper + 0xa);
669 const uint_type exponent = static_cast<uint_type>(
672 uint_type fraction = static_cast<uint_type>((bits & HF::fraction_encode_mask)
680 int_type int_exponent = static_cast<int_type>(exponent - HF::exponent_bias);
690 fraction = static_cast<uint_type>(fraction << 1);
691 int_exponent = static_cast<int_type>(int_exponent - 1);
695 fraction = static_cast<uint_type>(fraction << 1); // eat the leading 1
704 fraction = static_cast<uint_type>(fraction >> 4);
715 os << "." << std::setw(static_cast<int>(fraction_nibbles))
840 value.set_value(static_cast<typename HF::native_type>(0.f));
909 fraction = static_cast<uint_type>(
911 static_cast<uint_type>(
913 exponent = static_cast<int_type>(exponent + 1);
939 exponent = static_cast<int_type>(exponent - 1);
941 fraction = static_cast<uint_type>(
943 static_cast<uint_type>(
970 written_exponent = static_cast<int_type>(written_exponent * 10);
972 static_cast<int_type>(written_exponent + (next_char - '0'));
980 written_exponent = static_cast<int_type>(written_exponent * exponent_sign);
981 exponent = static_cast<int_type>(exponent + written_exponent);
985 fraction = static_cast<uint_type>(fraction << 1);
986 exponent = static_cast<int_type>(exponent - 1);
992 fraction = static_cast<uint_type>(fraction >> 1);
993 fraction |= static_cast<uint_type>(1) << HF::top_bit_left_shift;
1003 fraction = static_cast<uint_type>(fraction >> 1);
1004 exponent = static_cast<int_type>(exponent + 1);
1020 uint_type output_bits = static_cast<uint_type>(
1021 static_cast<uint_type>(negate_value ? 1 : 0) << HF::top_bit_left_shift);
1024 uint_type shifted_exponent = static_cast<uint_type>(
1025 static_cast<uint_type>(exponent << HF::exponent_left_shift) &