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 4/4] Remove powerpc64 strspn, strcspn, and strpbrk implementation


On 28-03-2016 13:08, Paul E. Murphy wrote:
> Hi Adhemerval,
> 
> Thanks for commonizing that. I'm surprised it hasn't been done earlier.
> 
> Anyhow, coincidental timing. I posted https://sourceware.org/ml/libc-alpha/2016-03/msg00642.html
> friday to optimize strspn with vector bit permutes. We'll need to coordinate
> these patches.
> 
> Thanks,
> Paul
> 

Indeed, however a fix is just by adjusting 
sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.{s,c} like:

---
#include <string.h>

#define STRSPN __strspn_ppc

#undef libc_hidden_builtin_def
#define libc_hidden_builtin_def(name)

extern __typeof (strspn) __strspn_ppc;

#include <string/strspn.c>
---


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