Commit e3809f62 authored by Michael Beck's avatar Michael Beck
Browse files

reverted r21775: too restrictive because ieee 754 uses binary representation for the mantissa

[r21867]
parent 2d536400
......@@ -1259,8 +1259,7 @@ restart:
}
}
}
if (get_mode_arithmetic(n_mode) == irma_twos_complement &&
get_mode_arithmetic(a_mode) == irma_ieee754) {
if (mode_is_int(n_mode) && get_mode_arithmetic(a_mode) == irma_ieee754) {
/* ConvI(ConvF(I)) -> I, iff float mantissa >= int mode */
unsigned int_mantissa = get_mode_size_bits(n_mode) - (mode_is_signed(n_mode) ? 1 : 0);
unsigned float_mantissa = tarval_ieee754_get_mantissa_size(a_mode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment