This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use ieee754/dbl-64/wordsize-64 on powerpc64
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 29 May 2012 20:11:26 -0300
- Subject: Re: [PATCH] Use ieee754/dbl-64/wordsize-64 on powerpc64
- References: <m2ehq4dl9q.fsf@igel.home>
On 05/28/2012 06:54 PM, Andreas Schwab wrote:
> This patch makes use of the ieee754/dbl-64/wordsize-64 files on
> powerpc64. Since it also uses ieee754/ldbl-opt, where the files refer
> to the non-wordsize-64 files in ieee754/dbl-64, it also adds the
> ieee754/ldbl-opt/wordsize-64 directory with the files common between
> ieee754/dbl-64/wordsize-64 and ieee754/ldbl-opt. The powerpc64 port
> actually uses only a subset of those files, but if s390x wants to use
> ieee754/dbl-64/wordsize-64 as well everything is prepared for it.
>
> Tested on powerpc64-linux.
>
> Andreas.
I was thinking proposing a patch similar to that, but I was intended to instead
to add a new implied folder to propose something like that:
#include <math_ldbl_opt.h>
#if __WORDSIZE == 64
#include <sysdeps/ieee754/dbl-64/wordsize64/s_isnan.c>
#else
#include <sysdeps/ieee754/dbl-64/s_isnan.c>
#endif
#ifndef IS_IN_libm
# if LONG_DOUBLE_COMPAT(libc, GLIBC_2_0)
compat_symbol (libc, __isnan, __isnanl, GLIBC_2_0);
compat_symbol (libc, isnan, isnanl, GLIBC_2_0);
# endif
#endif
But your idea to add a folder seems more flexible.
--
Adhemerval Zanella Netto
Software Engineer
Linux Technology Center Brazil
Toolchain / GLIBC on Power Architecture
azanella@linux.vnet.ibm.com / azanella@br.ibm.com
+55 61 8642-9890