diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-03-20 11:24:52 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-03-20 11:24:52 -0500 |
commit | 6eaf95cbfa0031ea267682dc2c9c17ed3e3dc167 (patch) | |
tree | 93cf4f0efb9ce1654e9f298b6342953a7935965a /sysdeps/powerpc/powerpc64/multiarch/Makefile | |
parent | ae3a5dff0f4135cc57ddddf3c19ed5be80285b54 (diff) | |
download | glibc-6eaf95cbfa0031ea267682dc2c9c17ed3e3dc167.tar.gz glibc-6eaf95cbfa0031ea267682dc2c9c17ed3e3dc167.tar.xz glibc-6eaf95cbfa0031ea267682dc2c9c17ed3e3dc167.zip |
PowerPC: optimized strcspn for PPC64/POWER7
This patch add a optimized strcspn for POWER7 by using a different algorithm than default implementation: it constructs a table based on the 'accept' argument and use this table to check for any occurance on the input string. The idea is similar as x86_64 uses. For PowerPC some tunings were added, such as unroll loops and align stack memory to table to 16 bytes (so VSX clean can ran without alignment issues).
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/Makefile')
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/Makefile b/sysdeps/powerpc/powerpc64/multiarch/Makefile index 3e8010c72d..c314e6f875 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/Makefile +++ b/sysdeps/powerpc/powerpc64/multiarch/Makefile @@ -15,7 +15,7 @@ sysdep_routines += memcpy-power7 memcpy-a2 memcpy-power6 memcpy-cell \ wordcopy-power7 wordcopy-power6 wordcopy-ppc64 \ strcpy-power7 strcpy-ppc64 stpcpy-power7 stpcpy-ppc64 \ strrchr-power7 strrchr-ppc64 strncat-power7 strncat-ppc64 \ - strspn-power7 strspn-ppc64 + strspn-power7 strspn-ppc64 strcspn-power7 strcspn-ppc64 CFLAGS-strncase-power7.c += -mcpu=power7 -funroll-loops CFLAGS-strncase_l-power7.c += -mcpu=power7 -funroll-loops |