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

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.832
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 df7e295d18ffa34f629578c0017a9881af7620f6)
sysdeps/x86_64/multiarch/strrchr-avx2.S