[gfortran] patch for PR 15292 missing round and roundf

Paolo Bonzini bonzini@gnu.org
Mon Jun 14 12:55:00 GMT 2004


> (2) We can include a implementation of fpclassify().  I don't have 
>     such code.

if (x != x) can be used to check for NaN.

if (x - x != 0.0) can be used to check for NaN or infinity.

if (x + x == x) can be used to check for infinity or zero.

See the attached test programlet.

Hope this helps,

Paolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: prova.c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040614/88f461ac/attachment.c>


More information about the Gcc-patches mailing list