From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCUOZ-0008S0-SJ for qemu-devel@nongnu.org; Wed, 20 Apr 2011 06:12:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCUOW-0004RK-EV for qemu-devel@nongnu.org; Wed, 20 Apr 2011 06:12:27 -0400 Received: from hall.aurel32.net ([88.191.126.93]:43735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCUOW-0004Qk-8S for qemu-devel@nongnu.org; Wed, 20 Apr 2011 06:12:24 -0400 From: Aurelien Jarno Date: Wed, 20 Apr 2011 12:11:51 +0200 Message-Id: <1303294329-22634-3-git-send-email-aurelien@aurel32.net> In-Reply-To: <1303294329-22634-1-git-send-email-aurelien@aurel32.net> References: <1303294329-22634-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH v2 02/20] softfloat: fix floatx80_is_infinity() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno With floatx80, the explicit bit is set for infinity. Reviewed-by: Peter Maydell Signed-off-by: Aurelien Jarno --- fpu/softfloat.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 340f0a9..3363128 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) -- 1.7.2.3