]> git.proxmox.com Git - mirror_qemu.git/commitdiff
fpu/softfloat.c: Remove pointless shift of always-zero value
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Sep 2012 16:28:35 +0000 (17:28 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 1 Oct 2012 20:06:39 +0000 (22:06 +0200)
In float16_to_float32, when returning an infinity, just pass zero
as the mantissa argument to packFloat32(), rather than shifting
a value which we know must be zero.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat.c

index b29256a8ebe3bb9aab7ac33f0b4fcd563ecebce0..01a28cab1a88656da070c14a7a127f675513b2fa 100644 (file)
@@ -3007,7 +3007,7 @@ float32 float16_to_float32(float16 a, flag ieee STATUS_PARAM)
         if (aSig) {
             return commonNaNToFloat32(float16ToCommonNaN(a STATUS_VAR) STATUS_VAR);
         }
-        return packFloat32(aSign, 0xff, aSig << 13);
+        return packFloat32(aSign, 0xff, 0);
     }
     if (aExp == 0) {
         int8 shiftCount;