mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
b4ed69ba16
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.
13 lines
258 B
ArmAsm
13 lines
258 B
ArmAsm
#ifndef MEMCMPEQ
|
|
# define MEMCMPEQ __memcmpeq_avx2_rtm
|
|
#endif
|
|
|
|
#define ZERO_UPPER_VEC_REGISTERS_RETURN \
|
|
ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST
|
|
|
|
#define VZEROUPPER_RETURN jmp L(return_vzeroupper)
|
|
|
|
#define SECTION(p) p##.avx.rtm
|
|
|
|
#include "memcmpeq-avx2.S"
|