]> git.proxmox.com Git - mirror_qemu.git/commitdiff
softfloat: fix return type of roundAndPackFloat16
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 22 Jan 2016 15:09:21 +0000 (15:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Jan 2016 15:09:21 +0000 (15:09 +0000)
The roundAndPackFloat16 function should return a float16 value, not a
float32 one. Fix that.

Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1452700993-6570-1-git-send-email-aurelien@aurel32.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
fpu/softfloat.c

index 850d08fc17a337f74a821b45bbb969b6ae612d9e..162c21122cdccf69ddfc525edfca83839e7e83af 100644 (file)
@@ -3368,7 +3368,7 @@ static float16 packFloat16(flag zSign, int_fast16_t zExp, uint16_t zSig)
 | Binary Floating-Point Arithmetic.
 *----------------------------------------------------------------------------*/
 
-static float32 roundAndPackFloat16(flag zSign, int_fast16_t zExp,
+static float16 roundAndPackFloat16(flag zSign, int_fast16_t zExp,
                                    uint32_t zSig, flag ieee,
                                    float_status *status)
 {