]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: handle intmax_t/uintmax_t in printf
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 11 Apr 2025 09:00:38 +0000 (11:00 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 22 Apr 2025 08:56:23 +0000 (10:56 +0200)
commit4c99fbc6a06f56e266f60f5f24d0cfd8311b2c09
tree1fcf8a163adf10e3ebdd9b7adb7ebf802bcd29fb
parent6d1724ec864b577b50fa9cf668e80390767f4136
tools/nolibc: handle intmax_t/uintmax_t in printf

In nolibc intmax_t and uintmax_t are always the same as
(unsigned) long long/uint64_t as 128bit numbers are not supported.
Even libcs that do support 128bit numbers often fix intmax_t to 64bit
as it is used in ABIs and any change would break those.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/stdio.h
tools/testing/selftests/nolibc/nolibc-test.c