long double (was "strtold?")

Ken Werner ken@linux.vnet.ibm.com
Thu Mar 12 05:45:00 GMT 2009


On Tuesday 10 March 2009 20:57:53 Howland Craig D (Craig) wrote:
>      I've been wondering about the general long double issue recently
> because I was doing some preliminary work on adding some long double
> functions to the math library.  (I hadn't stumbled across ldtoa.c, yet,
> so
> it's interesting to learn of its existence.)
>      A question that I have had is, do long double functions need to
> have a configure check for long double for conditional inclusion?
> (I had gotten as far as finding out that configure has a built in check
> for it and that AC_TYPE_LONG_DOUBLE can be used to generate a define for
> HAVE_LONG_DOUBLE.  There's also AC_TYPE_LONG_DOUBLE_WIDER to generate
> HAVE_LONG_DOUBLE_WIDER so that we could know not to bother with
> separate routines from double.  I hadn't gotten far enough along to ask
> the mailing list.  But since you've brought up the general topic, this
> seems like a good time to ask.)
Hi,
What about mapping the long double functions to their counterparts on 
platforms where a double is as wide as a long double? The attached patch 
introduces a flag defined in sys/features.h. You mentioned 
HAVE_LONG_DOUBLE_WIDER but the user may not define this flag. Do you want to 
generate a header file that exposes this flag? Wouldn't that result in something 
like config.h to be shipped with newlib or am I missing something?

Thanks
Ken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: longdouble.patch
Type: text/x-patch
Size: 8503 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20090312/845c0deb/attachment.bin>


More information about the Newlib mailing list