diff options
Diffstat (limited to 'src/int_math.h')
-rw-r--r-- | src/int_math.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/int_math.h b/src/int_math.h index 85305a4a..d36a44d2 100644 --- a/src/int_math.h +++ b/src/int_math.h @@ -21,6 +21,7 @@ #define MIN(x, y) ((x) < (y) ? (x) : (y)) #define MAX(x, y) ((x) > (y) ? (x) : (y)) +#define CLAMP(x, l, h) MAX(l, MIN(h, x)) static const uint64_t POW10[] = {1ull, 10ull, |