[PATCH] Use ieee754/dbl-64/wordsize-64 on powerpc64

Adhemerval Zanella azanella@linux.vnet.ibm.com
Tue May 29 23:16:00 GMT 2012


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



More information about the Libc-alpha mailing list