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


> >>>>> "Steve" == Steve Ellcey <sje@shale.cup.hp.com> writes:
> 
> Steve> I am looking at a problem where libjava is generating calls to finite().
> Steve> They are coming from libjava/java/lang/*.c files.
> 
> I wonder if there is a version of this function in fdlibm that we
> can/ought to use.
> 
> Tom

I am looking at java/lang/fdlibm.h and I was wondering if anyone could
explain why this header does not include the system math.h file.  I
tried to replicate what Fortran does but it did not work because
fdlibm.h does not include math.h and thus the macros fpclassify and
isfinite are not defined.  I think C99 requires these to be macros and
not functions but without including math.h I won't see them.

So why does fdlibm.h include declarations of sin/pow/sqrt/etc. instead
of just including math.h?

Steve Ellcey
sje@cup.hp.com


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