From d561fbb041fe6aa205f652aecefe4bb84fd124a5 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Tue, 12 Jul 2022 12:28:06 -0700 Subject: 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. --- sysdeps/x86_64/multiarch/strncmp-sse2.S | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sysdeps/x86_64/multiarch/strncmp-sse2.S') diff --git a/sysdeps/x86_64/multiarch/strncmp-sse2.S b/sysdeps/x86_64/multiarch/strncmp-sse2.S index e3ba94f926..2152b8dc3d 100644 --- a/sysdeps/x86_64/multiarch/strncmp-sse2.S +++ b/sysdeps/x86_64/multiarch/strncmp-sse2.S @@ -16,15 +16,5 @@ License along with the GNU C Library; if not, see . */ -#include - -#if IS_IN (libc) -# define STRCMP __strncmp_sse2 -# undef libc_hidden_builtin_def -# define libc_hidden_builtin_def(strcmp) -#else -# define STRCMP strncmp -#endif - #define USE_AS_STRNCMP -#include +#include "strcmp-sse2.S" -- cgit 1.4.1