This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] Use ieee754/dbl-64/wordsize-64 on powerpc64


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


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