mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
util: min
This commit is contained in:
@@ -12,4 +12,8 @@ static inline long ilog2(long x) {
|
|||||||
return sizeof(long) * 8 - __builtin_clz(x) - 1;
|
return sizeof(long) * 8 - __builtin_clz(x) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline long min(long x, long y) {
|
||||||
|
return x > y ? y : x;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user