diff options
author | Paul Clarke <pc@us.ibm.com> | 2019-01-15 12:42:58 -0600 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2019-01-16 12:18:58 -0200 |
commit | 008b598e2a495024f9777006716cfd8668f3db33 (patch) | |
tree | 8c1bbe535ed444b195a1b1e0d204354a2a48924d | |
parent | fbbc9a4e347dabb2d1662744e6a2e83b569ea3a4 (diff) | |
download | glibc-008b598e2a495024f9777006716cfd8668f3db33.tar glibc-008b598e2a495024f9777006716cfd8668f3db33.tar.gz glibc-008b598e2a495024f9777006716cfd8668f3db33.tar.bz2 glibc-008b598e2a495024f9777006716cfd8668f3db33.zip |
powerpc: Fix tiny bug in strncmp.c
A single underscore was omitted in
sysdeps/powerpc/powerpc64/multiarch/strncmp.c, resulting in use of
power8 version of strncmp instead of power9 version, with significant
performance degradation.
* sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strncmp.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2019-01-16 Paul A. Clarke <pc@us.ibm.com> + + * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef. + 2019-01-16 Zack Weinberg <zackw@panix.com> * support/xsignal.h (xalloc_sigstack, xfree_sigstack) diff --git a/sysdeps/powerpc/powerpc64/multiarch/strncmp.c b/sysdeps/powerpc/powerpc64/multiarch/strncmp.c index ab7379d734..d2791ced07 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strncmp.c +++ b/sysdeps/powerpc/powerpc64/multiarch/strncmp.c @@ -37,7 +37,7 @@ extern __typeof (strncmp) __strncmp_power9 attribute_hidden; /* Avoid DWARF definition DIE on ifunc symbol so that GDB can handle ifunc symbol properly. */ libc_ifunc_redirected (__redirect_strncmp, strncmp, -# ifdef __LITTLE_ENDIAN_ +# ifdef __LITTLE_ENDIAN__ (hwcap2 & PPC_FEATURE2_ARCH_3_00) ? __strncmp_power9 : # endif |