diff options
author | dweller <dweller@cabin.digital> | 2025-03-26 20:12:14 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2025-03-26 20:12:14 +0200 |
commit | f65558c3ae2ee4439d12344f79c09b6e82519f5d (patch) | |
tree | 2087a52e025bd2a59b72a893c69acdacbb5b8b4b /sources/bits.c | |
parent | 6f3a1b4fac4091168809b50a6b94142ba2a40a4f (diff) |
add most of the instructions, needs testing
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 |