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/int64.h | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/stdlib/int64.h (limited to 'src/stdlib/int64.h') diff --git a/src/stdlib/int64.h b/src/stdlib/int64.h new file mode 100644 index 00000000..dc47fa95 --- /dev/null +++ b/src/stdlib/int64.h @@ -0,0 +1,4 @@ +#define INTX_H__INT_BITS 64 +#define I64(i) (int64_t)(i) +#include "intX.h" // IWYU pragma: export +#define NONE_INT64 ((OptionalInt64_t){.has_value = false}) -- cgit v1.2.3