java.lang.StrictMath

Andrew Haley aph@cambridge.redhat.com
Fri Feb 15 04:38:00 GMT 2002


Bryce McKinlay writes:
 > 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

I'm not sure I believe that test case, as I said in my follow-up.

 > So, we don't get strictfp right on x86 even using -ffloat-store

That isn't surprising.

Andrew.



More information about the Java mailing list