]> 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)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 23 Apr 2022 04:08:40 +0000 (23:08 -0500)
commitdf7e295d18ffa34f629578c0017a9881af7620f6
tree4bedc359133e7d202730a2f67b9713d45775feb0
parent5307aa9c1800f36a64c183c091c9af392c1fa75c
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>
sysdeps/x86_64/multiarch/strrchr-avx2.S