]> 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>
Tue, 17 May 2022 03:46:48 +0000 (20:46 -0700)
commit7da0b8522b0498898f2b0d0b49f70869056e1e43
treebb7c3584783aab314da631fe4732a220ba696110
parentd02f73af991bfcf5eda4daf19507f0d5ddbba31f
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