aboutsummaryrefslogtreecommitdiff
path: root/sys/linux/amd64/arch/bits.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux/amd64/arch/bits.h')
-rw-r--r--sys/linux/amd64/arch/bits.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/linux/amd64/arch/bits.h b/sys/linux/amd64/arch/bits.h
new file mode 100644
index 0000000..e72e4e8
--- /dev/null
+++ b/sys/linux/amd64/arch/bits.h
@@ -0,0 +1,18 @@
+#pragma once
+
+/* base types */
+#define INT8 char
+#define INT16 short
+#define INT32 int
+#define INT64 long
+#define ADDR long
+
+/* ABI */
+#define PAGESIZE 4096
+#define INTPTR_MIN INT64_MIN
+#define INTPTR_MAX INT64_MAX
+#define UINTPTR_MAX UINT64_MAX
+#define PTRDIFF_MIN INT64_MIN
+#define PTRDIFF_MAX INT64_MAX
+#define SIZE_MAX UINT64_MAX
+#define LONG_MAX 0x7fffffffffffffffL