diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-20 13:04:22 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-25 11:18:32 +0200 |
commit | b76235e400be0e4f2c87ac4b678384f43a932181 (patch) | |
tree | 074421ecc4be1e18c85912ee69fba917f38efcca | |
parent | e2f422047b6fd04c28630f80ab1161dbce07c6b7 (diff) |
softfloat: fix floatx80_is_infinity()
With floatx80, the explicit bit is set for infinity.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r-- | fpu/softfloat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 340f0a9f2e..336312839a 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -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) |