9 inline T
Min(T a, T b) {
10 return (a > b) ? b : a;
15 inline T
Max(T a, T b) {
16 return (a < b) ? b : a;
22 return (T)((x + (base - 1)) & ~(base - 1));
Debugging library which includes various utilities used by the rest of nw4r.
T RoundUp(T x, u32 base)
Rounds x up to a multiple of base.
T Min(T a, T b)
Gets the smaller of the two given values.
T Max(T a, T b)
Gets the larger of the two given values.