]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Code cleanup in strchr-avx2 and comment justifying branch
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 23 Mar 2022 21:57:16 +0000 (16:57 -0500)
committerSunil K Pandey <skpgkp2@gmail.com>
Tue, 17 May 2022 03:43:15 +0000 (20:43 -0700)
commita66e66022dff74375a28f1fda11295e4792d3fd1
tree3b6fbeab2e2c486a4d239d16fb9680d12f521ae5
parent7898ee8f3f37b21d244aec24d1f85e099d09e6e8
x86: Code cleanup in strchr-avx2 and comment justifying branch

Small code cleanup for size: -53 bytes.

Add comment justifying using a branch to do NULL/non-null return.

All string/memory tests pass and no regressions in benchtests.

geometric_mean(N=20) of all benchmarks Original / New: 1.00
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit a6fbf4d51e9ba8063c4f8331564892ead9c67344)
sysdeps/x86_64/multiarch/strchr-avx2.S