aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/int64.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-19 14:07:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-19 14:07:53 -0400
commit1713c56dbf8ffaa01e559c7564928721e363ca39 (patch)
treeb1e1886076b3e44d95e082e2d1a8eb6db1437aec /src/stdlib/int64.h
parent3a2077067343a20f631ec36838e197b34ff422f4 (diff)
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.
Diffstat (limited to 'src/stdlib/int64.h')
-rw-r--r--src/stdlib/int64.h4
1 files changed, 4 insertions, 0 deletions
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})