about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/rtld-strncmp.S
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-07-12 12:28:06 -0700
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-07-13 14:55:31 -0700
commitd561fbb041fe6aa205f652aecefe4bb84fd124a5 (patch)
tree4fa103748eb51664285b31d4186ee06b6bea35b2 /sysdeps/x86_64/multiarch/rtld-strncmp.S
parent30e57e0a21cc50eead14f729a29a5604a6b23e18 (diff)
downloadglibc-d561fbb041fe6aa205f652aecefe4bb84fd124a5.tar.gz
glibc-d561fbb041fe6aa205f652aecefe4bb84fd124a5.tar.xz
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/multiarch/rtld-strncmp.S')
-rw-r--r--sysdeps/x86_64/multiarch/rtld-strncmp.S18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/rtld-strncmp.S b/sysdeps/x86_64/multiarch/rtld-strncmp.S
new file mode 100644
index 0000000000..ac32150406
--- /dev/null
+++ b/sysdeps/x86_64/multiarch/rtld-strncmp.S
@@ -0,0 +1,18 @@
+/* Copyright (C) 2022 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
+
+#include "../strncmp.S"