]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Small improvements for wcslen
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 25 Mar 2022 22:13:33 +0000 (17:13 -0500)
committerSunil K Pandey <skpgkp2@gmail.com>
Tue, 17 May 2022 03:45:53 +0000 (20:45 -0700)
commitaa4b53b4c041c522892a800b9e17a364a443c447
tree2d0e115e833894d1ca025d43799001963f3b501f
parentb03c4ba9ef2cc8ebb874ae605de0249310ec888d
x86: Small improvements for wcslen

Just a few QOL changes.
    1. Prefer `add` > `lea` as it has high execution units it can run
       on.
    2. Don't break macro-fusion between `test` and `jcc`
    3. Reduce code size by removing gratuitous padding bytes (-90
       bytes).

geometric_mean(N=20) of all benchmarks New / Original: 0.959

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