Lines Matching refs:exponent
35 int exponent = bits.get_exponent(); in trunc() local
39 if (exponent >= static_cast<int>(MantissaWidth<T>::VALUE)) in trunc()
43 if (exponent <= -1) { in trunc()
50 int trim_size = MantissaWidth<T>::VALUE - exponent; in trunc()
65 int exponent = bits.get_exponent(); in ceil() local
69 if (exponent >= static_cast<int>(MantissaWidth<T>::VALUE)) in ceil()
72 if (exponent <= -1) { in ceil()
79 uint32_t trim_size = MantissaWidth<T>::VALUE - exponent; in ceil()
116 int exponent = bits.get_exponent(); in round() local
120 if (exponent >= static_cast<int>(MantissaWidth<T>::VALUE)) in round()
123 if (exponent == -1) { in round()
131 if (exponent <= -2) { in round()
139 uint32_t trim_size = MantissaWidth<T>::VALUE - exponent; in round()
168 int exponent = bits.get_exponent(); in round_using_current_rounding_mode() local
173 if (exponent >= static_cast<int>(MantissaWidth<T>::VALUE)) in round_using_current_rounding_mode()
176 if (exponent <= -1) { in round_using_current_rounding_mode()
185 if (exponent <= -2 || bits.get_mantissa() == 0) in round_using_current_rounding_mode()
194 uint32_t trim_size = MantissaWidth<T>::VALUE - exponent; in round_using_current_rounding_mode()
221 if (exponent == 0) in round_using_current_rounding_mode()
257 int exponent = bits.get_exponent(); in rounded_float_to_signed_integer() local
259 if (exponent > EXPONENT_LIMIT) { in rounded_float_to_signed_integer()
262 } else if (exponent == EXPONENT_LIMIT) { in rounded_float_to_signed_integer()