This is the mail archive of the
mailing list for the GCC project.
Re: Quad-float math library: licence question
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Toon Moene <toon at moene dot org>
- Cc: FX <fxcoudert at gmail dot com>, Fortran List <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 14 Aug 2010 13:55:12 +0200
- Subject: Re: Quad-float math library: licence question
- References: <A1C88B53-2820-4DA6-90D7-C1F403D7B0B4@gmail.com> <4C667C97.firstname.lastname@example.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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).