aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 00000000..c4496bd1
--- /dev/null
+++ b/util.h
@@ -0,0 +1,5 @@
+#pragma once
+
+#define ALEN(v) (sizeof(v) / sizeof((v)[0]))
+#define min(x, y) ((x) < (y) ? (x) : (y))
+#define max(x, y) ((x) > (y) ? (x) : (y))