aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2017-02-07 10:42:06 +0530
committerRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2017-02-07 10:42:06 +0530
commite688cceee598f2c675b19bbb423543020c5a5638 (patch)
tree8871117c3b915f30b38aa4b9128120c6e8d1748e
parent04f0fd640d78ff715cb9409f03d55366ed76966e (diff)
downloadglibc-e688cceee598f2c675b19bbb423543020c5a5638.tar
glibc-e688cceee598f2c675b19bbb423543020c5a5638.tar.gz
glibc-e688cceee598f2c675b19bbb423543020c5a5638.tar.bz2
glibc-e688cceee598f2c675b19bbb423543020c5a5638.zip
powerpc: Use latest optimizations for internal function calls
Some of the power8 strings optimizations are not updated to use the latest version of other string optimizations
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S2
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 769e73819b..f8dacf7781 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2017-02-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
+ * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
+ STRCHR as __strchr_power8.
+ * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
+ strlen as __strlen_power8.
+
+2017-02-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
+
* sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
unaligned load for shorter strings.
* sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S
index f188c45f90..5a0eb9cd78 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S
+++ b/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S
@@ -44,6 +44,6 @@
/* strnlen is used to check if len of r3 is more than r4. */
#define STRNLEN __strnlen_power7
/* strchr is used to check if first char of r4 is present in r3. */
-#define STRCHR __strchr_power7
+#define STRCHR __strchr_power8
#include <sysdeps/powerpc/powerpc64/power8/strcasestr.S>
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c b/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c
index d6e69b1940..f138beec67 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c
@@ -23,8 +23,8 @@
#define libc_hidden_def(name)
extern typeof (strcpy) __strcpy_power8;
-extern typeof (strlen) __strlen_power7;
+extern typeof (strlen) __strlen_power8;
#define strcpy __strcpy_power8
-#define strlen __strlen_power7
+#define strlen __strlen_power8
#include <string/strcat.c>