From 76d89eb9973671726dc7fffaf22b06a7a77be550 Mon Sep 17 00:00:00 2001 From: dweller Date: Wed, 26 Mar 2025 17:31:51 +0200 Subject: build ''system''; decode metaprog; disasm --- sources/bits.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sources/bits.c (limited to 'sources/bits.c') 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 -- cgit v1.2.3