java.lang.StrictMath
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Fri Feb 15 02:06:00 GMT 2002
Tom Tromey wrote:
>I've removed the Classpath list and other innocent bystanders from the
>CC line.
>>Bryce> Do you have any examples of how GCC is *not* strictfp compliant
>Bryce> (at least on common platforms)? My understanding is that, by
>Bryce> default, it tries to be strictly IEEE 754. On x86 it will store
>Bryce> values to memory and make a function call to do FP arithmetic,
>Bryce> unless -ffast-math is given which allows it to do inline math
>Bryce> using (the 80-bit x87) FP registers.
>>I don't have examples.
>
Actually, I just rediscovered this test case from Shudo-san:
http://gcc.gnu.org/ml/java/2001-01/msg00496.html
So, we don't get strictfp right on x86 even using -ffloat-store (neither
does the IBM JDK, but Sun JDK 1.4 does). On PowerPC we always get
strictfp-correct results as you'd expect.
regards
Bryce.
More information about the Java
mailing list