aboutsummaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index 2752bd4..0a48edd 100644
--- a/util.h
+++ b/util.h
@@ -1 +1,3 @@
#define nelem(arr) (sizeof(arr)/sizeof(arr[0]))
+#define min(a, b) ((a < b) ? a : b)
+#define max(a, b) ((a > b) ? a : b)