x86: Remove strpbrk-sse2.S and use the generic implementation

The generic implementation is faster (see strcspn commit).

All string/memory tests pass.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

(cherry picked from commit 6533585352)
This commit is contained in:
Noah Goldstein 2022-03-23 16:57:27 -05:00 committed by Sunil K Pandey
parent 0dafa75e3c
commit 3811544655
2 changed files with 3 additions and 7 deletions

View File

@ -19,11 +19,10 @@
#if IS_IN (libc)
# include <sysdep.h>
# define strcspn __strpbrk_sse2
# define STRPBRK __strpbrk_sse2
# undef libc_hidden_builtin_def
# define libc_hidden_builtin_def(strpbrk)
# define libc_hidden_builtin_def(STRPBRK)
#endif
#define USE_AS_STRPBRK
#include <sysdeps/x86_64/strcspn.S>
#include <string/strpbrk.c>

View File

@ -1,3 +0,0 @@
#define strcspn strpbrk
#define USE_AS_STRPBRK
#include <sysdeps/x86_64/strcspn.S>