]> 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:31:56 +0000 (16:31 -0800)
commit86250b81da949d5960b563abce769ad4f4ebd9ee
treeddac4c502f6f83df80d8d4ca6e4ce6fa204b72c3
parentfaf303176402201df758bec3d3e69d8c85a46239
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