This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]