floating point bug -- or misunderstanding?
Alexandre Oliva
oliva@dcc.unicamp.br
Fri Aug 14 11:30:00 GMT 1998
Derrick Bass <derrick@tapir.Caltech.EDU> writes:
> I may have found a bug in egcs, but more likely I just don't
> understand floating point math.
The x86 FPU works with an internal precision higher than the one
offered by type double. Thus, when it performs calculations
internally, without storing temporary values in memory, it usually
gets more accurate results than if it stores and loads values in
memory. Your program is just getting rounding errors.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list