]> 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>
Mon, 16 May 2022 17:39:59 +0000 (10:39 -0700)
commit424bbd4d2502c43cf36372d588cbca161cafea43
tree70bc2350bee51e524437a57c69d93b78251da83c
parent0a10b8b181d0ad84c5f8a7c42f4932528b2964bc
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