]> sourceware.org Git - glibc.git/commitdiff
Add i686 __libc_ifunc_impl_list
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 10 Oct 2012 14:48:45 +0000 (07:48 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Oct 2012 23:40:02 +0000 (16:40 -0700)
43 files changed:
ChangeLog
sysdeps/i386/i686/multiarch/bcopy.S
sysdeps/i386/i686/multiarch/bzero.S
sysdeps/i386/i686/multiarch/ifunc-impl-list.c [new file with mode: 0644]
sysdeps/i386/i686/multiarch/memchr.S
sysdeps/i386/i686/multiarch/memcmp.S
sysdeps/i386/i686/multiarch/memcpy.S
sysdeps/i386/i686/multiarch/memcpy_chk.S
sysdeps/i386/i686/multiarch/memmove.S
sysdeps/i386/i686/multiarch/memmove_chk.S
sysdeps/i386/i686/multiarch/mempcpy.S
sysdeps/i386/i686/multiarch/mempcpy_chk.S
sysdeps/i386/i686/multiarch/memrchr.S
sysdeps/i386/i686/multiarch/memset.S
sysdeps/i386/i686/multiarch/memset_chk.S
sysdeps/i386/i686/multiarch/rawmemchr.S
sysdeps/i386/i686/multiarch/stpcpy.S
sysdeps/i386/i686/multiarch/stpncpy.S
sysdeps/i386/i686/multiarch/strcasecmp.S
sysdeps/i386/i686/multiarch/strcasecmp_l.S
sysdeps/i386/i686/multiarch/strcasestr-c.c
sysdeps/i386/i686/multiarch/strcat.S
sysdeps/i386/i686/multiarch/strchr.S
sysdeps/i386/i686/multiarch/strcmp.S
sysdeps/i386/i686/multiarch/strcpy.S
sysdeps/i386/i686/multiarch/strcspn.S
sysdeps/i386/i686/multiarch/strlen.S
sysdeps/i386/i686/multiarch/strncase.S
sysdeps/i386/i686/multiarch/strncase_l.S
sysdeps/i386/i686/multiarch/strncat.S
sysdeps/i386/i686/multiarch/strncmp.S
sysdeps/i386/i686/multiarch/strncpy.S
sysdeps/i386/i686/multiarch/strnlen.S
sysdeps/i386/i686/multiarch/strpbrk.S
sysdeps/i386/i686/multiarch/strrchr.S
sysdeps/i386/i686/multiarch/strspn.S
sysdeps/i386/i686/multiarch/strstr-c.c
sysdeps/i386/i686/multiarch/wcschr.S
sysdeps/i386/i686/multiarch/wcscmp.S
sysdeps/i386/i686/multiarch/wcscpy.S
sysdeps/i386/i686/multiarch/wcslen.S
sysdeps/i386/i686/multiarch/wcsrchr.S
sysdeps/i386/i686/multiarch/wmemcmp.S

index 5fd39f3232adb06e8e9a24fc43bc7af3b806a098..3f873f17aa73d00ee01e9757873986509f3d9ad2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,61 @@
 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
+       global and hidden.
+       * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
+       * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
+       * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
+       * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
+       Likewise.
+       * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
+       Likewise.
+       * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
+       * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
+       * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
+       * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
+       ifunc-impl-list.c.
+       * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
+       * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
+       * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memset.S: Likewise.
+       * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
+       * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
+       * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
+       * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
+       * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
+       * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
+       * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
+       * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
+       * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
+       * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
+       * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
+       * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
+       * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
+
        * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
        [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
        * include/ifunc-impl-list.h: New file.
index 9db3424688138e7a45f49fd4cf8d387254bd3c8b..b0744daf731298a495e7780eb47fdaad92a4a792 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of bcopy
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -67,6 +68,8 @@ END(bcopy)
 # define ENTRY(name) \
        .type __bcopy_ia32, @function; \
        .p2align 4; \
+       .globl __bcopy_ia32; \
+       .hidden __bcopy_ia32; \
        __bcopy_ia32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
index 86db169a8194ef02ed7177b6ae14dbfd894ad118..150c24c04f26db623aef126a1c3adf5e2ab043a4 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of bzero
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -67,6 +68,8 @@ END(__bzero)
 # define ENTRY(name) \
        .type __bzero_ia32, @function; \
        .p2align 4; \
+       .globl __bzero_ia32; \
+       .hidden __bzero_ia32; \
        __bzero_ia32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
diff --git a/sysdeps/i386/i686/multiarch/ifunc-impl-list.c b/sysdeps/i386/i686/multiarch/ifunc-impl-list.c
new file mode 100644 (file)
index 0000000..005c286
--- /dev/null
@@ -0,0 +1,326 @@
+/* Enumerate available IFUNC implementations of a function.  i686 version.
+   Copyright (C) 2012 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <assert.h>
+#include <string.h>
+#include <wchar.h>
+#include <ifunc-impl-list.h>
+#include "init-arch.h"
+
+/* Maximum number of IFUNC implementations.  */
+#define MAX_IFUNC      3
+
+/* Fill ARRAY of MAX elements with IFUNC implementations for function
+   NAME and return the number of valid entries.  */
+
+size_t
+__libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
+                       size_t max)
+{
+  assert (max >= MAX_IFUNC);
+
+  size_t i = 0;
+
+  /* Support sysdeps/i386/i686/multiarch/bcopy.S.  */
+  IFUNC_IMPL (i, name, bcopy,
+             IFUNC_IMPL_ADD (array, i, bcopy, HAS_SSSE3,
+                             __bcopy_ssse3_rep)
+             IFUNC_IMPL_ADD (array, i, bcopy, HAS_SSSE3, __bcopy_ssse3)
+             IFUNC_IMPL_ADD (array, i, bcopy, 1, __bcopy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/bzero.S.  */
+  IFUNC_IMPL (i, name, bzero,
+             IFUNC_IMPL_ADD (array, i, bzero, HAS_SSE2, __bzero_sse2_rep)
+             IFUNC_IMPL_ADD (array, i, bzero, HAS_SSE2, __bzero_sse2)
+             IFUNC_IMPL_ADD (array, i, bzero, 1, __bzero_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memchr.S.  */
+  IFUNC_IMPL (i, name, memchr,
+             IFUNC_IMPL_ADD (array, i, memchr, HAS_SSE2,
+                             __memchr_sse2_bsf)
+             IFUNC_IMPL_ADD (array, i, memchr, HAS_SSE2, __memchr_sse2)
+             IFUNC_IMPL_ADD (array, i, memchr, 1, __memchr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memcmp.S.  */
+  IFUNC_IMPL (i, name, memcmp,
+             IFUNC_IMPL_ADD (array, i, memcmp, HAS_SSE4_2,
+                             __memcmp_sse4_2)
+             IFUNC_IMPL_ADD (array, i, memcmp, HAS_SSSE3, __memcmp_ssse3)
+             IFUNC_IMPL_ADD (array, i, memcmp, 1, __memcmp_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memmove_chk.S.  */
+  IFUNC_IMPL (i, name, __memmove_chk,
+             IFUNC_IMPL_ADD (array, i, __memmove_chk, HAS_SSSE3,
+                             __memmove_chk_ssse3_rep)
+             IFUNC_IMPL_ADD (array, i, __memmove_chk, HAS_SSSE3,
+                             __memmove_chk_ssse3)
+             IFUNC_IMPL_ADD (array, i, __memmove_chk, 1,
+                             __memmove_chk_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memmove.S.  */
+  IFUNC_IMPL (i, name, memmove,
+             IFUNC_IMPL_ADD (array, i, memmove, HAS_SSSE3,
+                             __memmove_ssse3_rep)
+             IFUNC_IMPL_ADD (array, i, memmove, HAS_SSSE3,
+                             __memmove_ssse3)
+             IFUNC_IMPL_ADD (array, i, memmove, 1, __memmove_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memrchr.S.  */
+  IFUNC_IMPL (i, name, memrchr,
+             IFUNC_IMPL_ADD (array, i, memrchr, HAS_SSE2,
+                             __memrchr_sse2_bsf)
+             IFUNC_IMPL_ADD (array, i, memrchr, HAS_SSE2, __memrchr_sse2)
+             IFUNC_IMPL_ADD (array, i, memrchr, 1, __memrchr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memset_chk.S.  */
+  IFUNC_IMPL (i, name, __memset_chk,
+             IFUNC_IMPL_ADD (array, i, __memset_chk, HAS_SSE2,
+                             __memset_chk_sse2_rep)
+             IFUNC_IMPL_ADD (array, i, __memset_chk, HAS_SSE2,
+                             __memset_chk_sse2)
+             IFUNC_IMPL_ADD (array, i, __memset_chk, 1,
+                             __memset_chk_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memset.S.  */
+  IFUNC_IMPL (i, name, memset,
+             IFUNC_IMPL_ADD (array, i, memset, HAS_SSE2,
+                             __memset_sse2_rep)
+             IFUNC_IMPL_ADD (array, i, memset, HAS_SSE2, __memset_sse2)
+             IFUNC_IMPL_ADD (array, i, memset, 1, __memset_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/rawmemchr.S.  */
+  IFUNC_IMPL (i, name, rawmemchr,
+             IFUNC_IMPL_ADD (array, i, rawmemchr, HAS_SSE2,
+                             __rawmemchr_sse2_bsf)
+             IFUNC_IMPL_ADD (array, i, rawmemchr, HAS_SSE2,
+                             __rawmemchr_sse2)
+             IFUNC_IMPL_ADD (array, i, rawmemchr, 1, __rawmemchr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/stpncpy.S.  */
+  IFUNC_IMPL (i, name, stpncpy,
+             IFUNC_IMPL_ADD (array, i, stpncpy, HAS_SSSE3,
+                             __stpncpy_ssse3)
+             IFUNC_IMPL_ADD (array, i, stpncpy, HAS_SSE2, __stpncpy_sse2)
+             IFUNC_IMPL_ADD (array, i, stpncpy, 1, __stpncpy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/stpcpy.S.  */
+  IFUNC_IMPL (i, name, stpcpy,
+             IFUNC_IMPL_ADD (array, i, stpcpy, HAS_SSSE3, __stpcpy_ssse3)
+             IFUNC_IMPL_ADD (array, i, stpcpy, HAS_SSE2, __stpcpy_sse2)
+             IFUNC_IMPL_ADD (array, i, stpcpy, 1, __stpcpy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strcasecmp.S.  */
+  IFUNC_IMPL (i, name, strcasecmp,
+             IFUNC_IMPL_ADD (array, i, strcasecmp, HAS_SSE4_2,
+                             __strcasecmp_sse4_2)
+             IFUNC_IMPL_ADD (array, i, strcasecmp, HAS_SSSE3,
+                             __strcasecmp_ssse3)
+             IFUNC_IMPL_ADD (array, i, strcasecmp, 1, __strcasecmp_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strcasecmp_l.S.  */
+  IFUNC_IMPL (i, name, strcasecmp_l,
+             IFUNC_IMPL_ADD (array, i, strcasecmp_l, HAS_SSE4_2,
+                             __strcasecmp_l_sse4_2)
+             IFUNC_IMPL_ADD (array, i, strcasecmp_l, HAS_SSSE3,
+                             __strcasecmp_l_ssse3)
+             IFUNC_IMPL_ADD (array, i, strcasecmp_l, 1,
+                             __strcasecmp_l_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strcasestr.c.  */
+  IFUNC_IMPL (i, name, strcasestr,
+             IFUNC_IMPL_ADD (array, i, strcasestr, HAS_SSE4_2,
+                             __strcasestr_sse42)
+             IFUNC_IMPL_ADD (array, i, strcasestr, 1, __strcasestr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strcat.S.  */
+  IFUNC_IMPL (i, name, strcat,
+             IFUNC_IMPL_ADD (array, i, strcat, HAS_SSSE3, __strcat_ssse3)
+             IFUNC_IMPL_ADD (array, i, strcat, HAS_SSE2, __strcat_sse2)
+             IFUNC_IMPL_ADD (array, i, strcat, 1, __strcat_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strchr.S.  */
+  IFUNC_IMPL (i, name, strchr,
+             IFUNC_IMPL_ADD (array, i, strchr, HAS_SSE2,
+                             __strchr_sse2_bsf)
+             IFUNC_IMPL_ADD (array, i, strchr, HAS_SSE2, __strchr_sse2)
+             IFUNC_IMPL_ADD (array, i, strchr, 1, __strchr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strcmp.S.  */
+  IFUNC_IMPL (i, name, strcmp,
+             IFUNC_IMPL_ADD (array, i, strcmp, HAS_SSE4_2,
+                             __strcmp_sse4_2)
+             IFUNC_IMPL_ADD (array, i, strcmp, HAS_SSSE3, __strcmp_ssse3)
+             IFUNC_IMPL_ADD (array, i, strcmp, 1, __strcmp_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strcpy.S.  */
+  IFUNC_IMPL (i, name, strcpy,
+             IFUNC_IMPL_ADD (array, i, strcpy, HAS_SSSE3, __strcpy_ssse3)
+             IFUNC_IMPL_ADD (array, i, strcpy, HAS_SSE2, __strcpy_sse2)
+             IFUNC_IMPL_ADD (array, i, strcpy, 1, __strcpy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strcspn.S.  */
+  IFUNC_IMPL (i, name, strcspn,
+             IFUNC_IMPL_ADD (array, i, strcspn, HAS_SSE4_2,
+                             __strcspn_sse42)
+             IFUNC_IMPL_ADD (array, i, strcspn, 1, __strcspn_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strncase.S.  */
+  IFUNC_IMPL (i, name, strncasecmp,
+             IFUNC_IMPL_ADD (array, i, strncasecmp, HAS_SSE4_2,
+                             __strncasecmp_sse4_2)
+             IFUNC_IMPL_ADD (array, i, strncasecmp, HAS_SSSE3,
+                             __strncasecmp_ssse3)
+             IFUNC_IMPL_ADD (array, i, strncasecmp, 1,
+                             __strncasecmp_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strncase_l.S.  */
+  IFUNC_IMPL (i, name, strncasecmp_l,
+             IFUNC_IMPL_ADD (array, i, strncasecmp_l,
+                             HAS_SSE4_2, __strncasecmp_l_sse4_2)
+             IFUNC_IMPL_ADD (array, i, strncasecmp_l,
+                             HAS_SSSE3, __strncasecmp_l_ssse3)
+             IFUNC_IMPL_ADD (array, i, strncasecmp_l, 1,
+                             __strncasecmp_l_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strncat.S.  */
+  IFUNC_IMPL (i, name, strncat,
+             IFUNC_IMPL_ADD (array, i, strncat, HAS_SSSE3,
+                             __strncat_ssse3)
+             IFUNC_IMPL_ADD (array, i, strncat, HAS_SSE2, __strncat_sse2)
+             IFUNC_IMPL_ADD (array, i, strncat, 1, __strncat_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strncpy.S.  */
+  IFUNC_IMPL (i, name, strncpy,
+             IFUNC_IMPL_ADD (array, i, strncpy, HAS_SSSE3,
+                             __strncpy_ssse3)
+             IFUNC_IMPL_ADD (array, i, strncpy, HAS_SSE2, __strncpy_sse2)
+             IFUNC_IMPL_ADD (array, i, strncpy, 1, __strncpy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strnlen.S.  */
+  IFUNC_IMPL (i, name, strnlen,
+             IFUNC_IMPL_ADD (array, i, strnlen, HAS_SSE2, __strnlen_sse2)
+             IFUNC_IMPL_ADD (array, i, strnlen, 1, __strnlen_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strpbrk.S.  */
+  IFUNC_IMPL (i, name, strpbrk,
+             IFUNC_IMPL_ADD (array, i, strpbrk, HAS_SSE4_2,
+                             __strpbrk_sse42)
+             IFUNC_IMPL_ADD (array, i, strpbrk, 1, __strpbrk_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strrchr.S.  */
+  IFUNC_IMPL (i, name, strrchr,
+             IFUNC_IMPL_ADD (array, i, strrchr, HAS_SSE2,
+                             __strrchr_sse2_bsf)
+             IFUNC_IMPL_ADD (array, i, strrchr, HAS_SSE2, __strrchr_sse2)
+             IFUNC_IMPL_ADD (array, i, strrchr, 1, __strrchr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strspn.S.  */
+  IFUNC_IMPL (i, name, strspn,
+             IFUNC_IMPL_ADD (array, i, strspn, HAS_SSE4_2, __strspn_sse42)
+             IFUNC_IMPL_ADD (array, i, strspn, 1, __strspn_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strstr-c.c.  */
+  IFUNC_IMPL (i, name, strstr,
+             IFUNC_IMPL_ADD (array, i, strstr, HAS_SSE4_2, __strstr_sse42)
+             IFUNC_IMPL_ADD (array, i, strstr, 1, __strstr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/wcschr.S.  */
+  IFUNC_IMPL (i, name, wcschr,
+             IFUNC_IMPL_ADD (array, i, wcschr, HAS_SSE2, __wcschr_sse2)
+             IFUNC_IMPL_ADD (array, i, wcschr, 1, __wcschr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/wcscmp.S.  */
+  IFUNC_IMPL (i, name, wcscmp,
+             IFUNC_IMPL_ADD (array, i, wcscmp, HAS_SSE2, __wcscmp_sse2)
+             IFUNC_IMPL_ADD (array, i, wcscmp, 1, __wcscmp_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/wcscpy.S.  */
+  IFUNC_IMPL (i, name, wcscpy,
+             IFUNC_IMPL_ADD (array, i, wcscpy, HAS_SSSE3, __wcscpy_ssse3)
+             IFUNC_IMPL_ADD (array, i, wcscpy, 1, __wcscpy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/wcslen.S.  */
+  IFUNC_IMPL (i, name, wcslen,
+             IFUNC_IMPL_ADD (array, i, wcslen, HAS_SSE2, __wcslen_sse2)
+             IFUNC_IMPL_ADD (array, i, wcslen, 1, __wcslen_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/wcsrchr.S.  */
+  IFUNC_IMPL (i, name, wcsrchr,
+             IFUNC_IMPL_ADD (array, i, wcsrchr, HAS_SSE2, __wcsrchr_sse2)
+             IFUNC_IMPL_ADD (array, i, wcsrchr, 1, __wcsrchr_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/wmemcmp.S.  */
+  IFUNC_IMPL (i, name, wmemcmp,
+             IFUNC_IMPL_ADD (array, i, wmemcmp, HAS_SSE4_2,
+                             __wmemcmp_sse4_2)
+             IFUNC_IMPL_ADD (array, i, wmemcmp, HAS_SSSE3,
+                             __wmemcmp_ssse3)
+             IFUNC_IMPL_ADD (array, i, wmemcmp, 1, __wmemcmp_ia32))
+
+#ifdef SHARED
+  /* Support sysdeps/i386/i686/multiarch/memcpy_chk.S.  */
+  IFUNC_IMPL (i, name, __memcpy_chk,
+             IFUNC_IMPL_ADD (array, i, __memcpy_chk, HAS_SSSE3,
+                             __memcpy_chk_ssse3_rep)
+             IFUNC_IMPL_ADD (array, i, __memcpy_chk, HAS_SSSE3,
+                             __memcpy_chk_ssse3)
+             IFUNC_IMPL_ADD (array, i, __memcpy_chk, 1,
+                             __memcpy_chk_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/memcpy.S.  */
+  IFUNC_IMPL (i, name, memcpy,
+             IFUNC_IMPL_ADD (array, i, memcpy, HAS_SSSE3,
+                             __memcpy_ssse3_rep)
+             IFUNC_IMPL_ADD (array, i, memcpy, HAS_SSSE3, __memcpy_ssse3)
+             IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/mempcpy_chk.S.  */
+  IFUNC_IMPL (i, name, __mempcpy_chk,
+             IFUNC_IMPL_ADD (array, i, __mempcpy_chk, HAS_SSSE3,
+                             __mempcpy_chk_ssse3_rep)
+             IFUNC_IMPL_ADD (array, i, __mempcpy_chk, HAS_SSSE3,
+                             __mempcpy_chk_ssse3)
+             IFUNC_IMPL_ADD (array, i, __mempcpy_chk, 1,
+                             __mempcpy_chk_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/mempcpy.S.  */
+  IFUNC_IMPL (i, name, mempcpy,
+             IFUNC_IMPL_ADD (array, i, mempcpy, HAS_SSSE3,
+                             __mempcpy_ssse3_rep)
+             IFUNC_IMPL_ADD (array, i, mempcpy, HAS_SSSE3,
+                             __mempcpy_ssse3)
+             IFUNC_IMPL_ADD (array, i, mempcpy, 1, __mempcpy_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strlen.S.  */
+  IFUNC_IMPL (i, name, strlen,
+             IFUNC_IMPL_ADD (array, i, strlen, HAS_SSE2,
+                             __strlen_sse2_bsf)
+             IFUNC_IMPL_ADD (array, i, strlen, HAS_SSE2, __strlen_sse2)
+             IFUNC_IMPL_ADD (array, i, strlen, 1, __strlen_ia32))
+
+  /* Support sysdeps/i386/i686/multiarch/strncmp.S.  */
+  IFUNC_IMPL (i, name, strncmp,
+             IFUNC_IMPL_ADD (array, i, strncmp, HAS_SSE4_2,
+                             __strncmp_sse4_2)
+             IFUNC_IMPL_ADD (array, i, strncmp, HAS_SSSE3,
+                             __strncmp_ssse3)
+             IFUNC_IMPL_ADD (array, i, strncmp, 1, __strncmp_ia32))
+#endif
+
+  return i;
+}
index 2cf45426a65958021a0f8d74994341b41172bc53..8b0344b961ab9ea5cb93d6282a1379015c8ccffc 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of memchr
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index d8076b92760bccae054d8c60795d8616f239f6a0..7b9c1c4d1ca236038704cbf547536f4105b4ca8c 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of memcmp
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -67,6 +68,8 @@ END(memcmp)
 # define ENTRY(name) \
        .type __memcmp_ia32, @function; \
        .p2align 4; \
+       .globl __memcmp_ia32; \
+       .hidden __memcmp_ia32; \
        __memcmp_ia32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
index 558c04ff3d5c54faae1eb784e69f3f6dc5575396..0d4a101b9abb0ba0ce341e104f9850f2d68c069d 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of memcpy
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -51,6 +52,8 @@ END(memcpy)
 # define ENTRY(name) \
        .type __memcpy_ia32, @function; \
        .p2align 4; \
+       .globl __memcpy_ia32; \
+       .hidden __memcpy_ia32; \
        __memcpy_ia32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
index 40deada687fee9b2f1e8fe08696a9974338390f9..d9d7e1f9565935e64b78b7d388a0b38d51098a53 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of __memcpy_chk
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index b8892c065e3d7edfee1029a1e56c5cc8c6d066b0..b692f47f7cbf4c156368358234c0e8502c38ccef 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of memmove
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -50,6 +51,8 @@ END(memmove)
 # define ENTRY(name) \
        .type __memmove_ia32, @function; \
        .p2align 4; \
+       .globl __memmove_ia32; \
+       .hidden __memmove_ia32; \
        __memmove_ia32: cfi_startproc; \
        CALL_MCOUNT
 # else
index 8139cd96bbae535c4dc7bcdedb73a6b0944e9acd..20dc3e3a8a2d2d439cc58f302d92c8051dea509c 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of __memmove_chk
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 95bda4635354aa5500c789b448c5a4b46c75f50e..500e6e72e9958401b7ab3cff5c04b0ded899567f 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of mempcpy
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -51,6 +52,8 @@ END(__mempcpy)
 # define ENTRY(name) \
        .type __mempcpy_ia32, @function; \
        .p2align 4; \
+       .globl __mempcpy_ia32; \
+       .hidden __mempcpy_ia32; \
        __mempcpy_ia32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
index e491f942918eb941821de5eb30ce9b96a927d379..12f34532aa5fc7130de8355e2aeb311c10f099c8 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of __mempcpy_chk
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 762489d770e07a6fb552f28166cb39efda305488..f94862b3ea9715833252fe31976edd7bf686a463 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of memrchr
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 8878340244d0b6f4cb8536675754b995e35206d0..65745d4a2f150bd6d88303e9323f1da642766e60 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of memset
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 02649df192943d7a6e51d1cc49aff4e6f0545b4c..d499b8c527bbfef5a13178bfc63d2f9c65cbfda6 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of __memset_chk
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 5bea20bdc8eda99eb01ab2e38fdb81ea04d07431..f2af368f251b78f35b47210353ce0269eaf228e0 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of rawmemchr
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index b63d308edc09866045dd0c1193539182fdff19a0..ee81ab6ae3dd4917052c8867f8eb47ac5c8866cd 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of stpcpy
+   All versions must be listed in ifunc-impl-list.c.  */
 #define USE_AS_STPCPY
 #define STRCPY __stpcpy
 #include "strcpy.S"
index ff89a894918837b9cbcb2302e57e69c79b5e85d9..2698ca6a8c97542f16e4a9f9d9d8e0193d8c5c02 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of stpncpy
+   All versions must be listed in ifunc-impl-list.c.  */
 #define STRCPY __stpncpy
 #define USE_AS_STPCPY
 #define USE_AS_STRNCPY
index fbd2de398599282bacc49ba2aa637ae40dc6a6f0..cf83e6e97efbe56c1c981a057b74fb6a1512810a 100644 (file)
@@ -1,4 +1,5 @@
 /* Entry point for multi-version x86 strcasecmp.
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
index 1322bd86da863a080ec53cac73039c30000902c7..711c09b0dc1fa62e14b81f5cf0e60ca493601bc5 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of strcasecmp_l
+   All versions must be listed in ifunc-impl-list.c.  */
 #define STRCMP __strcasecmp_l
 #define USE_AS_STRCASECMP_L
 #include "strcmp.S"
index 0d52b0e47a37b44b637569526e4bf50347ea6ff2..c1d6dac1dd331f281e9e96331452acb5043f9331 100644 (file)
@@ -1,2 +1,4 @@
+/* Multiple versions of strcasestr
+   All versions must be listed in ifunc-impl-list.c.  */
 #define __strcasestr_sse2 __strcasestr_ia32
 #include <sysdeps/x86_64/multiarch/strcasestr-c.c>
index e68fecafb3bf3fe2893ec5878a1f6927c571eade..a7d322421c28c72b4be14cb213a1c32428e88f5f 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strcat
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -94,6 +95,8 @@ END(STRCAT)
 # define ENTRY(name) \
        .type STRCAT_IA32, @function; \
        .align 16; \
+       .globl STRCAT_IA32; \
+       .hidden STRCAT_IA32; \
        STRCAT_IA32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
index e236d607c9bb3aedd770177eed335e02153cdecb..c6205daf516ec78739e635c7b11445c66b5099d1 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strchr
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index b3b9eb87bc2abfcbb3fa901fc54b8392ae0043a5..76ac1f8ebc7dc1e850ec7ef74903eb73855fd7d4 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strcmp
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2010-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -95,6 +96,8 @@ END(STRCMP)
 # define ENTRY(name) \
        .type __STRCMP_IA32, @function; \
        .p2align 4; \
+       .globl __STRCMP_IA32; \
+       .hidden __STRCMP_IA32; \
        __STRCMP_IA32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
index 71eee768ac159db5b885b7d2b503a4af3b5adb36..44fa6d218fafbb7d234b6369e26c273066a5d5f3 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strcpy
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
@@ -110,6 +111,8 @@ END(STRCPY)
 # define ENTRY(name) \
        .type STRCPY_IA32, @function; \
        .align 16; \
+       .globl STRCPY_IA32; \
+       .hidden STRCPY_IA32; \
        STRCPY_IA32: cfi_startproc; \
        CALL_MCOUNT
 # undef END
index 8a00a020aafa21177c22309920b0fcc312aa08be..84954306ab8a0c99043b4a28b277aa79d732c2f5 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strcspn
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2009, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 310765cb05425a3a5a07810eff2d6be1ec211970..c1d8b6c323ffa78e360aeac82c768b64a83b2591 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strlen
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2009, 2010, 2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 37fccb85e668af47d79b83c0c4a68962196a69cd..ca5f86319525e6452228686b7e36ca2d491d34d8 100644 (file)
@@ -1,4 +1,5 @@
 /* Entry point for multi-version x86 strncasecmp.
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
index a808c8cd71d9d790d3d81dbe037fc5d03827804a..8a74ee8574c720aeb3b534fc051a0d75096b767e 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of strncasecmp_l
+   All versions must be listed in ifunc-impl-list.c.  */
 #define STRCMP __strncasecmp_l
 #define USE_AS_STRNCASECMP_L
 #include "strcmp.S"
index fd569c22342c16e2de42aeb55a3658e839760795..5c1bf414537e5015b785c38fa0f893c62f1c9cee 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of strncat
+   All versions must be listed in ifunc-impl-list.c.  */
 #define STRCAT strncat
 #define USE_AS_STRNCAT
 #include "strcat.S"
index b6814315fba9e474a1786032b23704dd65efce4d..150d4786d25fcd8c6384556aafac40a37ca0892f 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of strncmp
+   All versions must be listed in ifunc-impl-list.c.  */
 #define USE_AS_STRNCMP
 #define STRCMP strncmp
 #include "strcmp.S"
index 30a5bd2f9dbaaf45389b6498b4dd802271df8fe4..9c257efc6e4dc0c05bee2de8f1b44cb89d97741b 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of strncpy
+   All versions must be listed in ifunc-impl-list.c.  */
 #define USE_AS_STRNCPY
 #define STRCPY strncpy
 #include "strcpy.S"
index 44ad0b357ee6ee1a6f922447c4c8ed277ca133f5..b82052e969342e9d41c748aca4affff0dfebfef5 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strnlen
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index ed5bca6a94300c8fa1da3a9d40725ed4ee315ec1..7201d6376ff976b9151518685c5c401cdb13fb59 100644 (file)
@@ -1,3 +1,5 @@
+/* Multiple versions of strpbrk
+   All versions must be listed in ifunc-impl-list.c.  */
 #define STRCSPN strpbrk
 #define USE_AS_STRPBRK
 #include "strcspn.S"
index f851b7781e81d4443d4c8760a7a0dda15316442e..37468f1248c91b78fb37be20bfaee541de1e7691 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strrchr
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 8170f9cb8d0d29cfa7d03161075531eb75ba8495..f90df63ef837dbd45ff35e92ae9c7cda4eff9938 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of strspn
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2009,2010,2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 17c75c5f0b745296c11026ccbe84ed15faaf8246..7516c7ffee4b97eb70fdb66091e6d1f35ada5367 100644 (file)
@@ -1,3 +1,6 @@
+/* Multiple versions of strstr
+   All versions must be listed in ifunc-impl-list.c.  */
+
 #include "init-arch.h"
 
 #define STRSTR __strstr_ia32
index 34ea47df66cd18bdeaa995ac2f4c9f40c8e3dcd0..03fe3ca367de45135b53d5c632a32dddfb15d17f 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of wcschr
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index d4584760115fd87ef0d933124a431a305f8db50e..e23ba05ac9b78985fcbf8faa4f7dbe6ccae9382e 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of wcscmp
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 8c3ba1d28be6751411ffb216c7deb0055327e2fc..6eea48a6679d388254b97795bee041997d0aa333 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of wcscpy
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index f8b2fab9018ffc47e61a42efd4c2324f130d4f89..cdae51693d3af6f23f1b05098edac572e1e69bf8 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of wcslen
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index ec550b08255f3ce1e17d07839f26452d49d826a3..f4b0618c261f76df9673a8a2e3806b1a6770f99b 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of wcsrchr
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
index 61d55cd2f35822b5958d195b77ab8cb3e890eb4d..7c485f73122a141287688bb93d367e0d47d48a36 100644 (file)
@@ -1,4 +1,5 @@
 /* Multiple versions of wmemcmp
+   All versions must be listed in ifunc-impl-list.c.
    Copyright (C) 2011-2012 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
This page took 0.137526 seconds and 5 git commands to generate.