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: Patch for libgfortran; broken isnan/isfinite/fpclassify


On Fri, Sep 23, 2005 at 02:10:35PM -0700, Steve Ellcey wrote:
> +     long double x;
> +     x = 0/0;

This doesn't do what you think it does.  At minimum you wanted 0.0/0.0.
But better to use __builtin_nan{f,,l} ("").


r~


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