diff options
Diffstat (limited to 'sources/bits.c')
-rw-r--r-- | sources/bits.c | 15 |
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 |