]> 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)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 25 Mar 2022 16:46:13 +0000 (11:46 -0500)
commita6fbf4d51e9ba8063c4f8331564892ead9c67344
tree2f4437f0c52022a25398b2784bc7838065835ce0
parentece0eaa3f8f2a1b5911ca57659249d8a532d5c03
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>
sysdeps/x86_64/multiarch/strchr-avx2.S