]> 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)
committerSunil K Pandey <skpgkp2@gmail.com>
Mon, 16 May 2022 19:42:46 +0000 (12:42 -0700)
commit2c4fc8e5ca742c6a3a1933799495bb0b00a807f0
tree6f8960077beb3def16e9be06b05a5f6e5fb6de16
parentfdbc8439acfd42149fdad411df7f74dcb1b3a168
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>
(cherry picked from commit c966099cdc3e0fdf92f63eac09b22fa7e5f5f02d)
sysdeps/x86_64/multiarch/strrchr-evex.S