util: fix bad type casts on min/max

This commit is contained in:
Matheus
2026-04-16 17:21:53 -03:00
parent c8917b69ed
commit 5eb98748a8
+2 -7
View File
@@ -23,13 +23,8 @@ static inline unsigned long log2(unsigned long x) {
return sizeof(unsigned long) * 8 - __builtin_clzll(x) - 1;
}
static inline long min(long x, long y) {
return x > y ? y : x;
}
static inline long max(long x, long y) {
return x < y ? y : x;
}
#define min(x, y) (x > y ? y : x)
#define max(x, y) (x < y ? y : x)
#define FNV1PRIME 0x100000001b3ull
#define FNV1OFFSET 0xcbf29ce484222325ull