]> Git Repo - qemu.git/commitdiff
softfloat: fix floatx80_is_infinity()
authorAurelien Jarno <[email protected]>
Wed, 20 Apr 2011 11:04:22 +0000 (13:04 +0200)
committerAurelien Jarno <[email protected]>
Mon, 25 Apr 2011 09:18:32 +0000 (11:18 +0200)
With floatx80, the explicit bit is set for infinity.

Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
fpu/softfloat.h

index 340f0a9f2eb17d5784779f3fc95c4581ff3ff923..336312839a040c34d72385521fa3ffab967a27d2 100644 (file)
@@ -566,7 +566,7 @@ INLINE floatx80 floatx80_chs(floatx80 a)
 
 INLINE int floatx80_is_infinity(floatx80 a)
 {
-    return (a.high & 0x7fff) == 0x7fff && a.low == 0;
+    return (a.high & 0x7fff) == 0x7fff && a.low == 0x8000000000000000LL;
 }
 
 INLINE int floatx80_is_neg(floatx80 a)
This page took 0.026826 seconds and 4 git commands to generate.