[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] gnu-c99-math.h include file
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] gnu-c99-math.h include file |
Date: |
Fri, 8 Apr 2005 12:39:02 +0100 |
User-agent: |
KMail/1.7.2 |
> #include <ieeefp.h>
>
> #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