util: min

This commit is contained in:
Matheus
2023-07-19 15:10:14 -03:00
parent 92e43787b8
commit 6ff6f3c8b4
+4
View File
@@ -12,4 +12,8 @@ static inline long ilog2(long x) {
return sizeof(long) * 8 - __builtin_clz(x) - 1;
}
static inline long min(long x, long y) {
return x > y ? y : x;
}
#endif