qemu/fpu
Peter Maydell b3a6a2e041 softfloat: float*_to_int32_round_to_zero: don't assume int32 is 32 bits
Code in the float64_to_int32_round_to_zero() function was assuming
that int32 would not be wider than 32 bits; this meant it might
not correctly detect the overflow case. We take the simple approach
of using int32_t. Also fix equivalent issues in the functions
for other float sizes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2012-04-07 11:15:44 +00:00
..
softfloat-macros.h softfloat: use GCC builtins to count the leading zeros 2011-04-17 20:32:14 +02:00
softfloat-specialize.h softfloat: fix for C99 2012-03-17 13:01:18 +00:00
softfloat.c softfloat: float*_to_int32_round_to_zero: don't assume int32 is 32 bits 2012-04-07 11:15:44 +00:00
softfloat.h softfloat: fix for C99 2012-03-17 13:01:18 +00:00