]> sourceware.org Git - 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)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 25 Mar 2022 16:46:13 +0000 (11:46 -0500)
commit670b54bc585ea4a94f3b2e9272ba44aa6b730b73
treee665017c6de250124cc300339986041a769b2ccb
parent46d19d1b83c52cc92d8215c7a1a032bcab3d271c
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>
sysdeps/x86_64/strcmp.S
This page took 0.039727 seconds and 5 git commands to generate.