aboutsummaryrefslogtreecommitdiff
path: root/fpu/softfloat.h
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-18 22:43:16 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-18 22:43:16 +0000
commitdadd71a7777db0431149d3dee674f92c7d9f7bed (patch)
tree3bba9663d293de1bda0a0be83535ccd79d645c82 /fpu/softfloat.h
parent9326a95c81b80772ae5e042f62fa16eb0e150c3a (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/softfloat.h')
-rw-r--r--fpu/softfloat.h2
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)