[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/14] softfloat: Fix mixups of int and int16
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH 04/14] softfloat: Fix mixups of int and int16 |
Date: |
Mon, 16 Jan 2012 01:46:53 +0100 |
normalizeFloat{32,64}Subnormal() expect the exponent as int16, not int.
This went unnoticed since int16 and uint16 were both typedef'ed to int.
Signed-off-by: Andreas Färber <address@hidden>
---
fpu/softfloat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 81a7d1a..6dbcb1b 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -2131,7 +2131,7 @@ float32 float32_rem( float32 a, float32 b STATUS_PARAM )
float32 float32_muladd(float32 a, float32 b, float32 c, int flags STATUS_PARAM)
{
flag aSign, bSign, cSign, zSign;
- int aExp, bExp, cExp, pExp, zExp, expDiff;
+ int16 aExp, bExp, cExp, pExp, zExp, expDiff;
uint32_t aSig, bSig, cSig;
flag pInf, pZero, pSign;
uint64_t pSig64, cSig64, zSig64;
@@ -3685,7 +3685,7 @@ float64 float64_rem( float64 a, float64 b STATUS_PARAM )
float64 float64_muladd(float64 a, float64 b, float64 c, int flags STATUS_PARAM)
{
flag aSign, bSign, cSign, zSign;
- int aExp, bExp, cExp, pExp, zExp, expDiff;
+ int16 aExp, bExp, cExp, pExp, zExp, expDiff;
uint64_t aSig, bSig, cSig;
flag pInf, pZero, pSign;
uint64_t pSig0, pSig1, cSig0, cSig1, zSig0, zSig1;
--
1.7.7
- Re: [Qemu-devel] [PATCH 01/14] lm32: Fix mixup of uint32 and uint32_t, (continued)
[Qemu-devel] [PATCH 06/14] softfloat: Replace uint16 type with uint_fast16_t, Andreas Färber, 2012/01/15
[Qemu-devel] [PATCH 04/14] softfloat: Fix mixups of int and int16,
Andreas Färber <=
[Qemu-devel] [PATCH 03/14] qemu-tool: Fix mixup of int64 and int64_t, Andreas Färber, 2012/01/15
[Qemu-devel] [PATCH 09/14] softfloat: Replace int8 type with int_fast8_t, Andreas Färber, 2012/01/15
[Qemu-devel] [PATCH 08/14] softfloat: Remove unused uint8 type, Andreas Färber, 2012/01/15
[Qemu-devel] [PATCH 12/14] softfloat: Replace uint64 type with uint_fast64_t, Andreas Färber, 2012/01/15
[Qemu-devel] [PATCH 11/14] softfloat: Replace int32 type with int_fast32_t, Andreas Färber, 2012/01/15
[Qemu-devel] [PATCH 10/14] softfloat: Replace uint32 type with uint_fast32_t, Andreas Färber, 2012/01/15
[Qemu-devel] [PATCH 07/14] softfloat: Replace int16 type with int_fast16_t, Andreas Färber, 2012/01/15