[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] softfloat: fix mask in extractFloat32Exp
From: |
Alexander Aring |
Subject: |
[Qemu-trivial] [PATCH] softfloat: fix mask in extractFloat32Exp |
Date: |
Fri, 29 Mar 2013 13:00:42 +0100 |
This will fix the mask of extractFloat32Exp from 0xFF to 0x7F.
On bit 0x80 is the sign bit of IEEE 754.
Signed-off-by: Alexander Aring <address@hidden>
---
fpu/softfloat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 83ccc4b..4e8ed79 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -221,7 +221,7 @@ INLINE uint32_t extractFloat32Frac( float32 a )
INLINE int_fast16_t extractFloat32Exp(float32 a)
{
- return ( float32_val(a)>>23 ) & 0xFF;
+ return ( float32_val(a)>>23 ) & 0x7F;
}
--
1.8.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-trivial] [PATCH] softfloat: fix mask in extractFloat32Exp,
Alexander Aring <=