Received: from eggs.gnu.org ([140.186.70.92]:59263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBvYW-0007JX-9W for qemu-devel@nongnu.org; Mon, 18 Apr 2011 17:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBvYV-0004j2-6n for qemu-devel@nongnu.org; Mon, 18 Apr 2011 17:00:24 -0400 Received: from hall.aurel32.net ([88.191.126.93]:44193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBvYU-0004ig-Ut for qemu-devel@nongnu.org; Mon, 18 Apr 2011 17:00:23 -0400 From: Aurelien Jarno Date: Mon, 18 Apr 2011 22:59:54 +0200 Message-Id: <1303160412-8107-3-git-send-email-aurelien@aurel32.net> In-Reply-To: <1303160412-8107-1-git-send-email-aurelien@aurel32.net> References: <1303160412-8107-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 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. 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