]> 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>
Thu, 27 Jan 2022 22:43:04 +0000 (14:43 -0800)
commit72c07875610c5129b4de33143e865eefe9b9d3bd
tree54495374f066eb5ee8124d184e828ecb552038f0
parent30b429c2bffb7daf78d93126ff200f75e390fd4a
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