aboutsummaryrefslogtreecommitdiff
path: root/chad
diff options
context:
space:
mode:
Diffstat (limited to 'chad')
-rw-r--r--chad/memory-units.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chad/memory-units.h b/chad/memory-units.h
new file mode 100644
index 0000000..f2534fb
--- /dev/null
+++ b/chad/memory-units.h
@@ -0,0 +1,13 @@
+#ifndef MEMORY_UNITS
+#define MEMORY_UNITS
+
+#define KB 1000ull
+#define MB 1000000ull
+#define GB 1000000000ull
+#define TB 1000000000000ull
+#define KiB 1024ull
+#define MiB 1048576ull
+#define GiB 1073741824ull
+#define TiB 1099511627776ull
+
+#endif