From dadd71a7777db0431149d3dee674f92c7d9f7bed Mon Sep 17 00:00:00 2001 From: aurel32 Date: Thu, 18 Dec 2008 22:43:16 +0000 Subject: [PATCH] fp: fix float32_is_infinity() Thanks to Laurent Desnogues for the hint. Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6089 c046a42c-6fe2-441c-8c8c-71466251a162 --- fpu/softfloat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- GitLab