]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Optimize str{n}casecmp TOLOWER logic in strcmp.S
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 23 Mar 2022 21:57:36 +0000 (16:57 -0500)
committerSunil K Pandey <skpgkp2@gmail.com>
Mon, 16 May 2022 18:56:16 +0000 (11:56 -0700)
commit283982b36211e694755ef74592f2a1d70369aff3
treee50b6ea363979855d1c11c7ed2e767ccae679086
parent420cd6f155bf3dd4ff252843991ebe896e35c7ec
x86: Optimize str{n}casecmp TOLOWER logic in strcmp.S

Slightly faster method of doing TOLOWER that saves an
instruction.

Also replace the hard coded 5-byte no with .p2align 4. On builds with
CET enabled this misaligned entry to strcasecmp.

geometric_mean(N=40) of all benchmarks New / Original: .894

All string/memory tests pass.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 670b54bc585ea4a94f3b2e9272ba44aa6b730b73)
sysdeps/x86_64/strcmp.S