[PATCH v3 0/4] tools/nolibc: Adding stdint.h, more integer types and tests

From: Vincent Dagonneau
Date: Sun Feb 05 2023 - 20:33:31 EST


Hi,

This is version 3 of my patch to add stdint.h to nolibc. Previous
versions of this patch are available here:

* v2: https://lore.kernel.org/all/20230202201101.43160-1-v@xxxxxx/
* v1: https://lore.kernel.org/all/20230202160236.25342-1-v@xxxxxx/

This version should address most of the concerns raised by Willy on the
previous version (missing LL, ULL suffixes, uintptr/size_max size).

I tested it successfully on x86_64 and arm64 (on qemu). I have some
trouble setting up my cross compilation chain for i386, arm and mips
however.

Vincent Dagonneau (4):
tools/nolibc: Adding stdint.h
tools/nolibc: Adding integer types and integer limit macros
tools/nolibc: Enlarging column width of tests
tools/nolibc: Adding tests for the integer limits in stdint.h

tools/include/nolibc/Makefile | 4 +-
tools/include/nolibc/std.h | 15 +--
tools/include/nolibc/stdint.h | 84 ++++++++++++
tools/testing/selftests/nolibc/nolibc-test.c | 135 ++++++++++++-------
4 files changed, 173 insertions(+), 65 deletions(-)
create mode 100644 tools/include/nolibc/stdint.h

--
2.39.1