aboutsummaryrefslogtreecommitdiff
path: root/src/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base.h')
-rw-r--r--src/base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base.h b/src/base.h
index b18b9af..0e822d5 100644
--- a/src/base.h
+++ b/src/base.h
@@ -15,6 +15,8 @@
#include <stdint.h>
#define ARR_SIZE(xs) (sizeof(xs) / sizeof(xs[0]))
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#define MIN(a, b) ((a) > (b) ? (b) : (a))
typedef uint64_t u64;
typedef uint32_t u32;