utils.h: add BIT() macro

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-02-18 17:54:44 +09:00
parent 17aca31498
commit cf640de6db

View file

@ -7,6 +7,8 @@
#define printf debug_printf
#define BIT(x) (1L << (x))
static inline u64 read64(u64 addr)
{
u64 data;