about summary refs log tree commit diff
path: root/nss/nss_test2.c
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-03-23 16:57:22 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-03-25 11:46:13 -0500
commit30d627d477d7255345a4b713cf352ac32d644d61 (patch)
tree164a5c3c1018c4fd515145bc189c469d62fe6d97 /nss/nss_test2.c
parentdc18cd6c818944fafbeae9ba1b50bd8d0d070a7c (diff)
downloadglibc-30d627d477d7255345a4b713cf352ac32d644d61.tar.gz
glibc-30d627d477d7255345a4b713cf352ac32d644d61.tar.xz
glibc-30d627d477d7255345a4b713cf352ac32d644d61.zip
x86: Optimize strcspn and strpbrk in strcspn-c.c
Use _mm_cmpeq_epi8 and _mm_movemask_epi8 to get strlen instead of
_mm_cmpistri. Also change offset to unsigned to avoid unnecessary
sign extensions.

geometric_mean(N=20) of all benchmarks that dont fallback on
sse2/strlen; New / Original: .928

All string/memory tests pass.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'nss/nss_test2.c')
0 files changed, 0 insertions, 0 deletions