softfloat: Fix uint64_to_float64
authorRichard Henderson <rth@twiddle.net>
Mon, 31 Dec 2012 18:09:03 +0000 (10:09 -0800)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 5 Jan 2013 10:12:49 +0000 (10:12 +0000)
commit17ed229379d971ae117245b353324115a62b0014
tree14550aafa433d95e3f7d1e12e2fd71642aa06216
parenta4c7ecd8ca998044bfafa0bdd7ea47270e7ebad6
softfloat: Fix uint64_to_float64

The interface to normalizeRoundAndPackFloat64 requires that the
high bit be clear.  Perform one shift-right-and-jam if needed.

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