This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran, patch] provide isfinite as a macro
- From: Richard Henderson <rth at redhat dot com>
- To: François-Xavier Coudert <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 3 Aug 2005 11:29:42 -0700
- Subject: Re: [gfortran, patch] provide isfinite as a macro
- References: <19c433eb05080307312d9ccf75@mail.gmail.com>
On Wed, Aug 03, 2005 at 04:31:10PM +0200, François-Xavier Coudert wrote:
> +#define isfinite(x) (((x) == (x)) && ((2 * (x) != (x)) || ((x) == 0)))
Isn't ((x) - (x) == 0) a better definition?
r~