This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libjava configure question
Bryce McKinlay writes:
> Andrew Haley wrote:
>
> >Steve Ellcey writes:
> > >
> > > So why does fdlibm.h include declarations of sin/pow/sqrt/etc. instead
> > > of just including math.h?
> >
> >Because we don't use the system math libraries. We don't use them
> >because we can't be sure that they conform to Java language
> >requirements.
> >
> >
> I've wondered if there's any reason we couldn't use the system math
> library, provided it is IEEE floating-point compliant.
We could, yes, but mere IEEE compilaince won't do it: generally, the
results must be within 1 ulp of the correctly rounded result. It
might well be that the libraries on our common platforms are good
enough anyway,
Andrew.