about summary refs log tree commit diff
path: root/sysdeps/x86_64/memcmp.S
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2021-10-26 19:43:18 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2021-10-27 13:03:46 -0500
commitcf4fd28ea453d1a9cec93939bc88b58ccef5437a (patch)
treed60d3e49cd50ecfefe85f1fbdf0a419dc1a8120c /sysdeps/x86_64/memcmp.S
parentcf3acd774f4c11e90cdc28192d69c60e2c02a004 (diff)
downloadglibc-cf4fd28ea453d1a9cec93939bc88b58ccef5437a.tar.gz
glibc-cf4fd28ea453d1a9cec93939bc88b58ccef5437a.tar.xz
glibc-cf4fd28ea453d1a9cec93939bc88b58ccef5437a.zip
x86_64: Add support for __memcmpeq using sse2, avx2, and evex
No bug. This commit adds support for __memcmpeq to be implemented
seperately from memcmp. Support is added for versions optimized with
sse2, avx2, and evex.
Diffstat (limited to 'sysdeps/x86_64/memcmp.S')
-rw-r--r--sysdeps/x86_64/memcmp.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/x86_64/memcmp.S b/sysdeps/x86_64/memcmp.S
index 8a03e572e8..b53f2c0866 100644
--- a/sysdeps/x86_64/memcmp.S
+++ b/sysdeps/x86_64/memcmp.S
@@ -356,9 +356,10 @@ L(ATR32res):
 	.p2align 4,, 4
 END(memcmp)
 
-#undef bcmp
+#ifdef USE_AS_MEMCMPEQ
+libc_hidden_def (memcmp)
+#else
+# undef bcmp
 weak_alias (memcmp, bcmp)
-#undef __memcmpeq
-strong_alias (memcmp, __memcmpeq)
 libc_hidden_builtin_def (memcmp)
-libc_hidden_def (__memcmpeq)
+#endif