about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2021-09-30 15:37:09 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2021-10-27 13:03:46 -0500
commitb4ed69ba16ad5f5cfee2009ed86f10c06dce74e0 (patch)
treee3161d753ea51483ba7ccdf73e56bfe7d6ff3f07 /sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S
parentfa7f63d8d6a081d59dadcb9986efaafb8093735d (diff)
downloadglibc-b4ed69ba16ad5f5cfee2009ed86f10c06dce74e0.tar.gz
glibc-b4ed69ba16ad5f5cfee2009ed86f10c06dce74e0.tar.xz
glibc-b4ed69ba16ad5f5cfee2009ed86f10c06dce74e0.zip
x86_64: Add avx2 optimized __memcmpeq in memcmpeq-avx2.S
No bug. This commit adds new optimized __memcmpeq implementation for
avx2.

The primary optimizations are:

1) skipping the logic to find the difference of the first mismatched
byte.

2) not updating src/dst addresses as the non-equals logic does not
need to be reused by different areas.
Diffstat (limited to 'sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S')
-rw-r--r--sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S b/sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S
index 24b6a0c9ff..3264a4a76c 100644
--- a/sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S
+++ b/sysdeps/x86_64/multiarch/memcmpeq-avx2-rtm.S
@@ -1,5 +1,5 @@
-#ifndef MEMCMP
-# define MEMCMP __memcmpeq_avx2_rtm
+#ifndef MEMCMPEQ
+# define MEMCMPEQ __memcmpeq_avx2_rtm
 #endif
 
 #define ZERO_UPPER_VEC_REGISTERS_RETURN \