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 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).

	Jakub


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