This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: libstdc++/10277


"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


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