diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-07-12 12:28:06 -0700 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-07-13 14:55:31 -0700 |
commit | d561fbb041fe6aa205f652aecefe4bb84fd124a5 (patch) | |
tree | 4fa103748eb51664285b31d4186ee06b6bea35b2 /sysdeps/x86_64/strcasecmp_l.S | |
parent | 30e57e0a21cc50eead14f729a29a5604a6b23e18 (diff) | |
download | glibc-d561fbb041fe6aa205f652aecefe4bb84fd124a5.tar glibc-d561fbb041fe6aa205f652aecefe4bb84fd124a5.tar.gz glibc-d561fbb041fe6aa205f652aecefe4bb84fd124a5.tar.bz2 glibc-d561fbb041fe6aa205f652aecefe4bb84fd124a5.zip |
x86: Move strcmp SSE2 implementation to multiarch/strcmp-sse2.S
This commit doesn't affect libc.so.6, its just housekeeping to prepare
for adding explicit ISA level support.
Because strcmp-sse2.S implements so many functions (more from
avx2/evex/sse42) add a new file 'strcmp-naming.h' to assist in
getting the correct symbol name for all the function across
multiarch/non-multiarch builds.
Tested build on x86_64 and x86_32 with/without multiarch.
Diffstat (limited to 'sysdeps/x86_64/strcasecmp_l.S')
-rw-r--r-- | sysdeps/x86_64/strcasecmp_l.S | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sysdeps/x86_64/strcasecmp_l.S b/sysdeps/x86_64/strcasecmp_l.S index 5456b3a49e..84fd7fdfd3 100644 --- a/sysdeps/x86_64/strcasecmp_l.S +++ b/sysdeps/x86_64/strcasecmp_l.S @@ -1,6 +1,11 @@ -#define STRCMP __strcasecmp_l -#define USE_AS_STRCASECMP_L -#include "strcmp.S" +/* Symbols = __strcasecmp_l and __strcasecmp. */ + +#include "multiarch/strcasecmp_l-sse2.S" + +libc_hidden_builtin_def (__strcasecmp_l) weak_alias (__strcasecmp_l, strcasecmp_l) libc_hidden_def (strcasecmp_l) + +weak_alias (__strcasecmp, strcasecmp) +libc_hidden_def (__strcasecmp) |