libstdc++/10277

Gabriel Dos Reis gdr@integrable-solutions.net
Tue May 20 12:01:00 GMT 2003


"Voykov" <voykov@casaccia.enea.it> writes:

| Mr. Dos Reis,
| 
|  
| 
| '1.0 - exp(x)' jumps to 0.0 for 'double x' < 1.25e-16 and 'double x' >
| -1.00e-16, values near to the 'mach_eps<double>'. It is strange that for
| 'float x' the corresponding values are 5.68e-20 and -2.84e-20, far from the
| 'mach_eps<float>'.

Using GCC-3.3 and mainline, I did the test on a GNU/Linux running a
Pentium IV and for those values, the differences were consistently
zero, so the jumps were not there.   I suspect this is an issue with
the mathematical functions from your C library.  

-- Gaby



More information about the Gcc-bugs mailing list