This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.lang.StrictMath
- From: Andrew Haley <aph at cambridge dot redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>, tromey at redhat dot com,Eric Blake <ebb9 at email dot byu dot edu>, Brian Jones <cbj at gnu dot org>,Classpath list <classpath at gnu dot org>, java at gcc dot gnu dot org
- Date: Fri, 15 Feb 2002 16:23:40 +0000 (GMT)
- Subject: Re: java.lang.StrictMath
- References: <3C6C23B2.44F2C7F6@email.byu.edu><m3eljnmyku.fsf@lyta.haphazard.org><3C6C7375.DC98215E@email.byu.edu><87y9hvutnz.fsf@creche.redhat.com><3C6CB279.1080003@waitaki.otago.ac.nz><orsn82enh6.fsf@free.redhat.lsd.ic.unicamp.br>
Alexandre Oliva writes:
> On Feb 15, 2002, Bryce McKinlay <bryce@waitaki.otago.ac.nz> wrote:
>
> > So, unless I misunderstand something and there is more to it, we
> > should make -ffast-math the default for Java except where strictfp is
> > encountered.
>
> I'm not sure going all the way to -ffast-math would be appropriate,
We have to distingush between Java strictfp compliance and IEEE
compliance. strictfp doesn't allow temporaries to be of larger
precision than double, for example. IEEE does.
I agree that -ffast-math as a default is probably a bad idea.
Andrew.