mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-24 23:53:04 +00:00
utils.h: add min and max
Signed-off-by: Sven Peter <sven@svenpeter.dev>
This commit is contained in:
parent
af7ad9c064
commit
1a04590ed3
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue