[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/7] softfloat: fix return type of roundAndPackFloat1
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PULL 7/7] softfloat: fix return type of roundAndPackFloat16 |
Date: |
Fri, 22 Jan 2016 15:17:36 +0000 |
From: Aurelien Jarno <address@hidden>
The roundAndPackFloat16 function should return a float16 value, not a
float32 one. Fix that.
Cc: Peter Maydell <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
---
fpu/softfloat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 850d08f..162c211 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -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)
{
--
1.9.1
- [Qemu-devel] [PULL 0/7] softfloat queue, Peter Maydell, 2016/01/22
- [Qemu-devel] [PULL 7/7] softfloat: fix return type of roundAndPackFloat16,
Peter Maydell <=
- [Qemu-devel] [PULL 1/7] fpu: Replace int64 typedef with int64_t, Peter Maydell, 2016/01/22
- [Qemu-devel] [PULL 6/7] fpu: Replace uint8 typedef with uint8_t, Peter Maydell, 2016/01/22
- [Qemu-devel] [PULL 5/7] fpu: Replace int8 typedef with int8_t, Peter Maydell, 2016/01/22
- [Qemu-devel] [PULL 4/7] fpu: Replace uint32 typedef with uint32_t, Peter Maydell, 2016/01/22
- [Qemu-devel] [PULL 2/7] fpu: Replace uint64 typedef with uint64_t, Peter Maydell, 2016/01/22
- [Qemu-devel] [PULL 3/7] fpu: Replace int32 typedef with int32_t, Peter Maydell, 2016/01/22
- Re: [Qemu-devel] [PULL 0/7] softfloat queue, Peter Maydell, 2016/01/25