summaryrefslogtreecommitdiff
path: root/sources/bits.c
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2025-03-26 17:31:51 +0200
committerdweller <dweller@cabin.digital>2025-03-26 17:31:51 +0200
commit76d89eb9973671726dc7fffaf22b06a7a77be550 (patch)
treec0c3c6fb20d905b8f9b3bde2c1546d481b66e280 /sources/bits.c
parent5bf658d3a940e536e232d8fcd6e2ae431e5afdd7 (diff)
build ''system''; decode metaprog; disasm
Diffstat (limited to 'sources/bits.c')
-rw-r--r--sources/bits.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sources/bits.c b/sources/bits.c
new file mode 100644
index 0000000..a6b7887
--- /dev/null
+++ b/sources/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