]> git.ipfire.org Git - thirdparty/qemu.git/commit
fpu/softfloat.c: Return correctly signed values from uint64_to_float32
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Sep 2012 15:17:03 +0000 (16:17 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:21 +0000 (21:44 -0500)
commita8f2299d1b170b6100b0e9ad00788a7a7e31719b
treecd8d4fee2b472472550731d43b086fd82f053099
parent68fc5d1d27af39f21c688e6f4b0ea22d66800736
fpu/softfloat.c: Return correctly signed values from uint64_to_float32

The uint64_to_float32() conversion function was incorrectly always
returning numbers with the sign bit set (ie negative numbers). Correct
this so we return positive numbers instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit e744c06fca438dc08271e626034e632a270c91c8)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
fpu/softfloat.c