]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: make memchr use memchr-power7.
authorCarlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Tue, 11 Aug 2015 22:38:45 +0000 (19:38 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 21 Aug 2015 20:05:40 +0000 (17:05 -0300)
In powerpc64, memchr was always pointing to the internal __GI_memchr
implementation.  This patch fixes that and makes it use the
optimized POWER7 version when adequate.

* sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
memchr not point to the internal __GI_memchr implementation.

ChangeLog
sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c

index c5e70b17ba4d6e46382400578f5c3cc091c8865f..20d5255280553af4f9604d0d4598b178755b7a92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
+       memchr not point to the internal __GI_memchr implementation.
+
 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
 
        * timezone/Makefile (CFLAGS-zdump.c): Remove
index eadfea16542b8ec7db3c878c885bc8a24c1e2a1f..302d1bb83d65916af188db5a79abd5796270dea9 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c>
+#include <string.h>
+
+#define MEMCHR  __memchr_ppc
+
+#undef weak_alias
+#define weak_alias(a, b)
+
+# undef libc_hidden_builtin_def
+# define libc_hidden_builtin_def(name)
+
+extern __typeof (memchr) __memchr_ppc attribute_hidden;
+
+#include <string/memchr.c>