This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran, patch] provide isfinite as a macro


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]