This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: libm to-do list addition
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 09 May 2013 17:04:58 -0400
- Subject: Re: libm to-do list addition
- References: <Pine dot LNX dot 4 dot 64 dot 1305091922380 dot 29757 at digraph dot polyomino dot org dot uk> <518C0071 dot 3050905 at twiddle dot net>
On 05/09/2013 04:00 PM, Richard Henderson wrote:
> On 05/09/2013 12:23 PM, Joseph S. Myers wrote:
>> static const long double c[] = {
>> +/* 113 bits of pi/2 */
>> #define PI_2_1 c[0]
>> + 0x1.921fb54442d18469898cc51701b8p+0L,
>
> Putting compile-time constants into static data variables, as is done here, is
> probably self-defeating. If we use the literals directly, gcc ought to be
> putting them into mergable .rodata sections. Then common constants like PI/2
> can be shared between math object files.
>
> Whether this increases the code size for symbol lookup is target-specific. But
> I would hope that most targets would do well with got- or pc-relative relocations.
Add it to the master todo list?
With whatever notes you think appropriate.
http://sourceware.org/glibc/wiki/Development_Todo/Master
Cheers,
Carlos.