diff options
author | Willy Tarreau <w@1wt.eu> | 2022-02-07 19:23:41 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-21 03:05:44 +0300 |
commit | d76232ff8be662b8851e975d13d59cad4bf423d3 (patch) | |
tree | ace91fc59554a8f257ab3b484b393b498d4da97e /Makefile | |
parent | d8dcc2d8d93e5d4263ca9f8c5bdfb713f82fe923 (diff) | |
download | linux-d76232ff8be662b8851e975d13d59cad4bf423d3.tar.xz |
tools/nolibc/string: slightly simplify memmove()
The direction test inside the loop was not always completely optimized,
resulting in a larger than necessary function. This change adds a
direction variable that is set out of the loop. Now the function is down
to 48 bytes on x86, 32 on ARM and 68 on mips. It's worth noting that other
approaches were attempted (including relying on the up and down functions)
but they were only slightly beneficial on x86 and cost more on others.
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions