[PATCH] long double IEEE double -> quad switch (take 2)

Jakub Jelinek jakub@redhat.com
Mon Jul 12 19:30:00 GMT 2004


On Fri, Mar 26, 2004 at 11:49:42AM -0800, Ulrich Drepper wrote:
> The defined __LONG_DOUBLE_MATH_OPTIONAL || !defined
> __NO_LONG_DOUBLE_MATH expression probably deserves it own #define to
> make tests shorter.
> 
> All the redirect macros should be defined in a central place:
> <sys/cdefs.h>.  No need to duplicate this.  And: out of sight.
> <sys/cdefs.h> is not that often looked at.

Done, __NLDBL_REDIR/__NLDBL_REDIR2 macros.
As for the #defines for compilers without redirect or whatever other reasons
the redirections wouldn't work, I took a different approach which doesn't
clutter the headers - a small libnldbl_nonshared.a library which must
be inserted before -lm and/or -lc when building a program with
double == long double with non-redirect capable compiler.

I have tried to cleanup the libio hacks too.

	Jakub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-nldbl.patch.bz2
Type: application/x-bzip2
Size: 37669 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040712/fddd2cc0/attachment.bz2>


More information about the Libc-alpha mailing list