]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Optimize {str|wcs}rchr-evex
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 22 Apr 2022 01:52:30 +0000 (20:52 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Sat, 23 Apr 2022 04:08:43 +0000 (23:08 -0500)
commitc966099cdc3e0fdf92f63eac09b22fa7e5f5f02d
tree6cc2471be9d9eeff2ab39aa69f716ab4023b7b0d
parentdf7e295d18ffa34f629578c0017a9881af7620f6
x86: Optimize {str|wcs}rchr-evex

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.755
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-evex.S