summaryrefslogtreecommitdiff
path: root/bits.c
diff options
context:
space:
mode:
Diffstat (limited to 'bits.c')
-rw-r--r--bits.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/bits.c b/bits.c
new file mode 100644
index 0000000..a6b7887
--- /dev/null
+++ b/bits.c
@@ -0,0 +1,15 @@
+#define iota __COUNTER__
+
+#define bit(x) (1 << (x))
+
+#define KB bit(10)
+#define MB bit(11)
+#define GB bit(12)
+
+typedef unsigned char u8;
+typedef unsigned short u16;
+typedef unsigned long long u64;
+
+typedef u8 bool;
+#define true 1
+#define false 0