libjava configure question

Andrew Haley aph@redhat.com
Wed May 25 15:26:00 GMT 2005


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /