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>
Mon, 14 Feb 2022 18:48:53 +0000 (10:48 -0800)
commit6d0f522b0e304ab672858463e10a2bf6ebf3d44d
tree5f701f878a735439dccec72d8f501bb3e929c2d8
parent0fa38f464f73b5c4940e3cd399ee9f9c43fd7bdf
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