Skip to content
Snippets Groups Projects
Commit b3a6a2e0 authored by Peter Maydell's avatar Peter Maydell Committed by Blue Swirl
Browse files

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: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent a52d28af
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment