aboutsummaryrefslogtreecommitdiff
path: root/src/include/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/stddef.h')
-rw-r--r--src/include/stddef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/stddef.h b/src/include/stddef.h
index 888d497809..5b51c00635 100644
--- a/src/include/stddef.h
+++ b/src/include/stddef.h
@@ -13,6 +13,13 @@ typedef unsigned int wint_t;
#define NULL ((void *)0)
+/* Standard units. */
+#define KiB (1<<10)
+#define MiB (1<<20)
+#define GiB (1<<30)
+/* Could we ever run into this one? I hope we get this much memory! */
+#define TiB (1<<40)
+
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#ifdef __PRE_RAM__