]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Optimize strchr-avx2.S
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 23 Apr 2021 19:56:24 +0000 (15:56 -0400)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 25 Apr 2021 17:04:31 +0000 (10:04 -0700)
commitccabe7971f508709d034b63b8672f6f751a3d356
tree4818c4150f98c1a906eed25ebbf6869bdb460979
parent24f261f27fb8fd19ae294ff2a13bc5b7a0bafc91
x86: Optimize strchr-avx2.S

No bug. This commit optimizes strchr-avx2.S. The optimizations are all
small things such as save an ALU in the alignment process, saving a
few instructions in the loop return, saving some bytes in the main
loop, and increasing the ILP in the return cases. test-strchr,
test-strchrnul, test-wcschr, and test-wcschrnul are all passing.

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
sysdeps/x86_64/multiarch/strchr-avx2.S