utils.h: add min and max

Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
Sven Peter 2021-03-07 09:11:17 +01:00 committed by Hector Martin
parent af7ad9c064
commit 1a04590ed3

View file

@ -9,6 +9,9 @@
#define BIT(x) (1L << (x))
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
static inline u64 read64(u64 addr)
{
u64 data;