From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DJrTt-0000m2-SN for qemu-devel@nongnu.org; Fri, 08 Apr 2005 07:16:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJrTn-0000hq-1K for qemu-devel@nongnu.org; Fri, 08 Apr 2005 07:16:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJrTm-0000g4-De for qemu-devel@nongnu.org; Fri, 08 Apr 2005 07:16:50 -0400 Received: from [65.74.133.9] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DJrqD-0006al-6Q for qemu-devel@nongnu.org; Fri, 08 Apr 2005 07:40:01 -0400 From: Paul Brook Subject: Re: [Qemu-devel] gnu-c99-math.h include file Date: Fri, 8 Apr 2005 12:39:02 +0100 References: <200504080833.j388Xfur016496@imap3.tools.intra> In-Reply-To: <200504080833.j388Xfur016496@imap3.tools.intra> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504081239.04435.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > #include > > #define isnormal(x) (fpclass(x) >= FP_NZERO) > > #define isgreater(x, y) ((x) > (y)) > #define isgreaterequal(x, y) ((x) >= (y)) > #define isless(x, y) ((x) < (y)) > #define islessequal(x, y) ((x) <= (y)) These are not correct. eg. You should be using #define isgreater(x, y) ((!unordered(x, y)) && ((x) > (y)) Paul