softfloat: roundAndPackInt{32, 64}: Don't assume int32 is 32 bits
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Apr 2012 18:12:35 +0000 (19:12 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 7 Apr 2012 11:15:55 +0000 (11:15 +0000)
commit760e141613f5f7c09f5c141658f1e7c23b4a5c33
tree3ec861b3bf0440978d8ba2ee72d9fc9ed5359f20
parentb3a6a2e0417c78ec5491347eb85a7d125a5fefdc
softfloat: roundAndPackInt{32, 64}: Don't assume int32 is 32 bits

Fix code in roundAndPackInt32 that assumed that int32 was only
32 bits, by simply using int32_t instead. Fix the parallel bug
in roundAndPackInt64 as well, although that one is only theoretical
since it's unlikely that int64 will ever be more than 64 bits.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
fpu/softfloat.c