076f82
commit 38115446558e6d0976299eb592ba7266681c27d5
076f82
Author: Noah Goldstein <goldstein.w.n@gmail.com>
076f82
Date:   Wed Mar 23 16:57:27 2022 -0500
076f82
076f82
    x86: Remove strpbrk-sse2.S and use the generic implementation
076f82
    
076f82
    The generic implementation is faster (see strcspn commit).
076f82
    
076f82
    All string/memory tests pass.
076f82
    Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
076f82
    
076f82
    (cherry picked from commit 653358535280a599382cb6c77538a187dac6a87f)
076f82
076f82
diff --git a/sysdeps/x86_64/multiarch/strpbrk-sse2.S b/sysdeps/x86_64/multiarch/strpbrk-sse2.c
076f82
similarity index 87%
076f82
rename from sysdeps/x86_64/multiarch/strpbrk-sse2.S
076f82
rename to sysdeps/x86_64/multiarch/strpbrk-sse2.c
076f82
index c5b95d08ff09cb27..8a58f051c35163dd 100644
076f82
--- a/sysdeps/x86_64/multiarch/strpbrk-sse2.S
076f82
+++ b/sysdeps/x86_64/multiarch/strpbrk-sse2.c
076f82
@@ -19,11 +19,10 @@
076f82
 #if IS_IN (libc)
076f82
 
076f82
 # include <sysdep.h>
076f82
-# define strcspn __strpbrk_sse2
076f82
+# define STRPBRK __strpbrk_sse2
076f82
 
076f82
 # undef libc_hidden_builtin_def
076f82
-# define libc_hidden_builtin_def(strpbrk)
076f82
+# define libc_hidden_builtin_def(STRPBRK)
076f82
 #endif
076f82
 
076f82
-#define USE_AS_STRPBRK
076f82
-#include <sysdeps/x86_64/strcspn.S>
076f82
+#include <string/strpbrk.c>
076f82
diff --git a/sysdeps/x86_64/strpbrk.S b/sysdeps/x86_64/strpbrk.S
076f82
deleted file mode 100644
076f82
index 21888a5b923974f9..0000000000000000
076f82
--- a/sysdeps/x86_64/strpbrk.S
076f82
+++ /dev/null
076f82
@@ -1,3 +0,0 @@
076f82
-#define strcspn strpbrk
076f82
-#define USE_AS_STRPBRK
076f82
-#include <sysdeps/x86_64/strcspn.S>