[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sqrtl/ldexpl prototypes
From: |
Andreas Jaeger |
Subject: |
Re: sqrtl/ldexpl prototypes |
Date: |
Wed, 22 Aug 2001 12:14:04 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial Intelligence) |
Willem Konynenberg <address@hidden> writes:
> Hello,
>
> I have a question on the math interfaces.
>
> I am using some interfaces such as ldexpl and sqrtl.
> On some platforms, these are defined as inlines via math.h.
> No problem there.
> On some other platforms, however, they are not defined
> as inlines, and as far as I can tell, math.h provides no
> prototype declaration for these functions in that case.
>
> I had thought (lacking an appropriate standard document to refer
> to, my books are too old for this) that including math.h would
> provide the necessary prototypes to be able to use these functions.
> Is that an incorrect assumption, or is there perhaps some
> omission in the math prototypes?
>
> I tried to search the glibc source to see what is where, but I
> couldn't find any prototypes for functions like sqrtl/ldexpl,
> only the base sqrt/ldexp.
>
> Currently, I am getting complaints about compiler warnings
> from someone trying to compile the software on PowerPC.
PowerPC? sqrtl is in libm.so.6 but we powerpc has no real long double
type and therefore you don't get the prototypes. sqrtl is the same as
sqrt on this platform.
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj