tools/nolibc/stdlib: add i64toa() and u64toa()
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Feb 2022 16:23:28 +0000 (17:23 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Feb 2022 17:56:45 +0000 (09:56 -0800)
commitdaabae252c501fa687b8ef12bdae6384492380fc
tree64e99be8cd7c5b0659e127d7bf6d51261c9d5ecf
parent5b718a9cad6b2033f290e0334d0458370aff48a7
tools/nolibc/stdlib: add i64toa() and u64toa()

These are 64-bit variants of the itoa() and utoa() functions. They also
support reentrant ones, and use the same itoa_buffer. The functions are
a bit larger than the previous ones in 32-bit mode (86 and 98 bytes on
x86_64 and armv7 respectively), which is why we continue to provide them
as separate functions.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/stdlib.h