]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Optimize strlen-avx2.S
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 19 Apr 2021 23:36:07 +0000 (19:36 -0400)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Jan 2022 00:25:48 +0000 (16:25 -0800)
commit0a3b2efccc31311b3c74e71141954661863e643c
tree0cb0390cdc160b663e6173c0660cc95b1f107dc6
parentc51e9501c2a45bffd92314478fe8146f80948fd2
x86: Optimize strlen-avx2.S

No bug. This commit optimizes strlen-avx2.S. The optimizations are
mostly small things but they add up to roughly 10-30% performance
improvement for strlen. The results for strnlen are bit more
ambiguous. test-strlen, test-strnlen, test-wcslen, and test-wcsnlen
are all passing.

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
(cherry picked from commit aaa23c35071537e2dcf5807e956802ed215210aa)
sysdeps/x86_64/multiarch/ifunc-impl-list.c
sysdeps/x86_64/multiarch/strlen-avx2.S