This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Quad-float math library: licence question


On Sat, Aug 14, 2010 at 3:25 PM, Toon Moene <toon@moene.org> wrote:
> Jakub Jelinek wrote:
>
>> On Sat, Aug 14, 2010 at 01:23:03PM +0200, Toon Moene wrote:
>
>>> One obvious question I see coming is "why can't you just *call* the
>>> binary128 routines in glibc ?", so I have to understand that bit
>>> first (otherwise I'm bound to get into a slow back-and-forth between
>>> you and me).
>
>> Because they aren't there. ?glibc has sysdeps/ieee754/ldbl-128/*l.c
>> sources for *l functions, using 128-bit IEEE quad long double and with
>> L suffix on floating point constants, for architectures that have
>> IEEE quad long double (sparc, alpha, s390).
>> The routines in libquadmath are very similar, but with
>> s/long double/__float128/, s/L/Q/ and renaming of fn suffixes from l
>> to q (there are likely a few other changes), for targets that have smaller
>> or less precise long double, but have __float128 type (i?86, x86-64,
>> ia64).
>
> I suspect in that case the suggestion would be to add these functions to
> glibc (I have been in an earlier discussion about a comparable request -
> Richard Guenther's suggestion to add a library for vectorized math
> functions).
>
> If there's a good reason why this can't be done, I'd rather hear it
> beforehand :-)

The single good reason is called Ulrich Drepper.  Well - at least ask him
before spending time on this.

Richard.


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