helos1/util/minmax.h

11 lines
148 B
C
Raw Normal View History

#pragma once
static inline int intmin(int x, int y) {
return x < y ? x : y;
}
static inline int intmax(int x, int y) {
return x > y ? x : y;
}