]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Optimize {str|wcs}rchr-sse2
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 22 Apr 2022 01:52:28 +0000 (20:52 -0500)
committerSunil K Pandey <skpgkp2@gmail.com>
Tue, 17 May 2022 03:46:27 +0000 (20:46 -0700)
commit1c9f410f115deb9e66ebf92d748635cc3deb341b
tree4b29edeeea98635447433e1f800a216c967c24b4
parent505a5f15fb4fb04de08a04dae7fbf021daefa772
x86: Optimize {str|wcs}rchr-sse2

The new code unrolls the main loop slightly without adding too much
overhead and minimizes the comparisons for the search CHAR.

Geometric Mean of all benchmarks New / Old: 0.741
See email for all results.

Full xcheck passes on x86_64 with and without multiarch enabled.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 5307aa9c1800f36a64c183c091c9af392c1fa75c)
sysdeps/x86_64/multiarch/strrchr-sse2.S
sysdeps/x86_64/multiarch/wcsrchr-sse2.S
sysdeps/x86_64/strrchr.S
sysdeps/x86_64/wcsrchr.S