diff options
Diffstat (limited to 'sources/bits.c')
-rw-r--r-- | sources/bits.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/bits.c b/sources/bits.c index a6b7887..ba52f4f 100644 --- a/sources/bits.c +++ b/sources/bits.c @@ -1,5 +1,7 @@ #define iota __COUNTER__ +#define lengthof(x) (sizeof(x) / sizeof((x)[0])) + #define bit(x) (1 << (x)) #define KB bit(10) @@ -9,6 +11,7 @@ typedef unsigned char u8; typedef unsigned short u16; typedef unsigned long long u64; +typedef u64 usize; typedef u8 bool; #define true 1 |