Rounding errors using doubles?
craig@jcb-sc.com
craig@jcb-sc.com
Wed Mar 31 23:46:00 GMT 1999
>If this doesn't work on other x86 CPUs, I'd like to know.
>Linux saves and restores the FPU flags on context switch, so this is
>safe to call in an individual program.
I've seen that kind of solution recommended before, and most/all
people who've used it seem to be happy with it.
The reason I don't like it as a general solution is that we don't
really know whether's there's any low-level numerical code lurking
down there that *assumes* the FPU modes are set to 80 bits, and
won't work correctly otherwise. It's therefore not a robust solution,
even though it might happen to be 100% effective. Whereas, an
option that's like -ffloat-store but affects *all* intermediate
computations *would* be robust, even if not 100% effective (in that
code not compiled with that option would still use 80-bit computations).
>BTW, I am on the list. :)
That's good to know: people can ignore my earlier email then.
tq vm, (burley)
More information about the Gcc
mailing list