when is a double float nearest infinity ?

Christian Bruel chrbr@free.fr
Sat Jan 20 12:07:00 GMT 2007


I found the answer to my second question : I just needed to include 
<fenv.h>. Attached a fixed version of the example. But I'm still puzzled 
by the first question (why mdmax+dmax) gives infinity ?

attached a modified version of the test program, compiled with
gcc testinf.c -pedantic -ansi -mieee-fp -lm -Wall -O2

I also tried to compile with -moft-soft to check the libgcc behavior but 
that lead to undefined `__eqdf2' `__adddf3' references.

thanks for any help

Christian

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testinf.c
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20070120/628c446d/attachment-0001.c>


More information about the Gcc-help mailing list