From 1713c56dbf8ffaa01e559c7564928721e363ca39 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 19 Oct 2025 14:07:53 -0400 Subject: Move integer implementation details into separate header/C files, backed by template headers that use an INT_BITS macro to redefine implementations for different int sizes. --- src/stdlib/int16.h | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/stdlib/int16.h (limited to 'src/stdlib/int16.h') diff --git a/src/stdlib/int16.h b/src/stdlib/int16.h new file mode 100644 index 00000000..d7490292 --- /dev/null +++ b/src/stdlib/int16.h @@ -0,0 +1,4 @@ +#define INTX_H__INT_BITS 16 +#define I16(i) (int16_t)(i) +#include "intX.h" // IWYU pragma: export +#define NONE_INT16 ((OptionalInt16_t){.has_value = false}) -- cgit v1.2.3