diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-18 22:43:16 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-18 22:43:16 +0000 |
commit | dadd71a7777db0431149d3dee674f92c7d9f7bed (patch) | |
tree | 3bba9663d293de1bda0a0be83535ccd79d645c82 /fpu | |
parent | 9326a95c81b80772ae5e042f62fa16eb0e150c3a (diff) |
fp: fix float32_is_infinity()
Thanks to Laurent Desnogues for the hint.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6089 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'fpu')
-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 b7983daf44..9061f03be1 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -283,7 +283,7 @@ INLINE float32 float32_chs(float32 a) INLINE int float32_is_infinity(float32 a) { - return (float32_val(a) & 0x7fffffff) == 0x7ff80000; + return (float32_val(a) & 0x7fffffff) == 0x7f800000; } INLINE int float32_is_neg(float32 a) |