]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Rename strstr_sse2 to strstr_generic as it uses string/strstr.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 24 Jun 2022 16:42:13 +0000 (09:42 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 27 Jun 2022 15:35:51 +0000 (08:35 -0700)
This is in accordance with other files in the multiarch directory.

sysdeps/x86_64/multiarch/ifunc-impl-list.c
sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S
sysdeps/x86_64/multiarch/strstr.c

index bf52cf96d05856145e44df71cdaf0b9c5e6af2f6..0d2831990567db34c036b2b5c16bee48ed7d4387 100644 (file)
@@ -627,7 +627,7 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
                                && CPU_FEATURE_USABLE (BMI2)),
                               __strstr_avx512)
              IFUNC_IMPL_ADD (array, i, strstr, 1, __strstr_sse2_unaligned)
-             IFUNC_IMPL_ADD (array, i, strstr, 1, __strstr_sse2))
+             IFUNC_IMPL_ADD (array, i, strstr, 1, __strstr_generic))
 
   /* Support sysdeps/x86_64/multiarch/wcschr.c.  */
   IFUNC_IMPL (i, name, wcschr,
index 3d12ffdf1e4d351bc818d8389932f117e76d1b8a..c6aa8f45a60d175826c3d4e6eb483495a2cbf424 100644 (file)
@@ -267,7 +267,7 @@ L(next_pair3):
        .p2align 4
 L(switch_strstr):
        movq    %rdi, %rdi
-       jmp     __strstr_sse2
+       jmp     __strstr_generic
 
        .p2align 4
 L(cross_page):
index 2fb8b169b6a935880388cca8a715371af7035193..2b831992458697b873dc35bc350802efe24b1ce3 100644 (file)
 #include <string.h>
 #undef  strstr
 
-#define STRSTR __strstr_sse2
+#define STRSTR __strstr_generic
 #ifdef SHARED
 # undef libc_hidden_builtin_def
 # define libc_hidden_builtin_def(name) \
-  __hidden_ver1 (__strstr_sse2, __GI_strstr, __strstr_sse2);
+  __hidden_ver1 (__strstr_generic, __GI_strstr, __strstr_generic);
 #endif
 
 #include "string/strstr.c"
 
 extern __typeof (__redirect_strstr) __strstr_sse2_unaligned attribute_hidden;
-extern __typeof (__redirect_strstr) __strstr_sse2 attribute_hidden;
+extern __typeof (__redirect_strstr) __strstr_generic attribute_hidden;
 extern __typeof (__redirect_strstr) __strstr_avx512 attribute_hidden;
 
 #include "init-arch.h"
@@ -58,7 +58,7 @@ IFUNC_SELECTOR (void)
   if (CPU_FEATURES_ARCH_P (cpu_features, Fast_Unaligned_Load))
     return __strstr_sse2_unaligned;
 
-  return __strstr_sse2;
+  return __strstr_generic;
 }
 
 libc_ifunc_redirected (__redirect_strstr, __libc_strstr, IFUNC_SELECTOR ());