513694
From 1620feaf35e282954d1261dd2a7beaf09306659b Mon Sep 17 00:00:00 2001
513694
From: Noah Goldstein <goldstein.w.n@gmail.com>
513694
Date: Wed, 23 Mar 2022 16:57:27 -0500
513694
Subject: [PATCH] x86: Remove strpbrk-sse2.S and use the generic implementation
513694
513694
The generic implementation is faster (see strcspn commit).
513694
513694
All string/memory tests pass.
513694
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
513694
513694
(cherry picked from commit 653358535280a599382cb6c77538a187dac6a87f)
513694
---
513694
 .../x86_64/multiarch/{strpbrk-sse2.S => strpbrk-sse2.c}    | 7 +++----
513694
 sysdeps/x86_64/strpbrk.S                                   | 3 ---
513694
 2 files changed, 3 insertions(+), 7 deletions(-)
513694
 rename sysdeps/x86_64/multiarch/{strpbrk-sse2.S => strpbrk-sse2.c} (87%)
513694
 delete mode 100644 sysdeps/x86_64/strpbrk.S
513694
513694
diff --git a/sysdeps/x86_64/multiarch/strpbrk-sse2.S b/sysdeps/x86_64/multiarch/strpbrk-sse2.c
513694
similarity index 87%
513694
rename from sysdeps/x86_64/multiarch/strpbrk-sse2.S
513694
rename to sysdeps/x86_64/multiarch/strpbrk-sse2.c
513694
index 3c6a74db..ec0b6fda 100644
513694
--- a/sysdeps/x86_64/multiarch/strpbrk-sse2.S
513694
+++ b/sysdeps/x86_64/multiarch/strpbrk-sse2.c
513694
@@ -19,11 +19,10 @@
513694
 #if IS_IN (libc)
513694
 
513694
 # include <sysdep.h>
513694
-# define strcspn __strpbrk_sse2
513694
+# define STRPBRK __strpbrk_sse2
513694
 
513694
 # undef libc_hidden_builtin_def
513694
-# define libc_hidden_builtin_def(strpbrk)
513694
+# define libc_hidden_builtin_def(STRPBRK)
513694
 #endif
513694
 
513694
-#define USE_AS_STRPBRK
513694
-#include <sysdeps/x86_64/strcspn.S>
513694
+#include <string/strpbrk.c>
513694
diff --git a/sysdeps/x86_64/strpbrk.S b/sysdeps/x86_64/strpbrk.S
513694
deleted file mode 100644
513694
index 21888a5b..00000000
513694
--- a/sysdeps/x86_64/strpbrk.S
513694
+++ /dev/null
513694
@@ -1,3 +0,0 @@
513694
-#define strcspn strpbrk
513694
-#define USE_AS_STRPBRK
513694
-#include <sysdeps/x86_64/strcspn.S>
513694
-- 
513694
GitLab
513694