linux/tools/include/nolibc
Willy Tarreau d76232ff8b 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>
2022-04-20 17:05:44 -07:00
..
arch-aarch64.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-arm.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-i386.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-mips.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-riscv.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch-x86_64.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
arch.h tools/nolibc/arch: split arch-specific code into individual files 2022-04-20 17:05:43 -07:00
ctype.h tools/nolibc/ctype: add the missing is* functions 2022-04-20 17:05:43 -07:00
nolibc.h tools/nolibc/stdio: add a minimal set of stdio functions 2022-04-20 17:05:44 -07:00
std.h tools/nolibc/std: move the standard type definitions to std.h 2022-04-20 17:05:33 -07:00
stdio.h tools/nolibc/stdio: add perror() to report the errno value 2022-04-20 17:05:44 -07:00
stdlib.h tools/nolibc/stdlib: make raise() use the lower level syscalls only 2022-04-20 17:05:44 -07:00
string.h tools/nolibc/string: slightly simplify memmove() 2022-04-20 17:05:44 -07:00
sys.h tools/nolibc/sys: make getpgrp(), getpid(), gettid() not set errno 2022-04-20 17:05:44 -07:00
types.h tools/nolibc/types: define EXIT_SUCCESS and EXIT_FAILURE 2022-04-20 17:05:44 -07:00