]> 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)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 23 Apr 2022 04:08:36 +0000 (23:08 -0500)
commit5307aa9c1800f36a64c183c091c9af392c1fa75c
tree8a8a8e6d8221a7157219490657eacf5d184b1c9c
parentc2ff9555a18b84732004d061b1a797ea1a432c6a
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>
sysdeps/x86_64/multiarch/strrchr-sse2.S
sysdeps/x86_64/multiarch/wcsrchr-sse2.S
sysdeps/x86_64/strrchr.S
sysdeps/x86_64/wcsrchr.S