mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-03 04:01:43 +08:00
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:
parent
0dafa75e3c
commit
3811544655
@ -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>
|
@ -1,3 +0,0 @@
|
||||
#define strcspn strpbrk
|
||||
#define USE_AS_STRPBRK
|
||||
#include <sysdeps/x86_64/strcspn.S>
|
Loading…
Reference in New Issue
Block a user