aboutsummaryrefslogtreecommitdiff
path: root/src/include/general.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/general.h')
-rw-r--r--src/include/general.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/general.h b/src/include/general.h
index 2cb4bd9..c82c750 100644
--- a/src/include/general.h
+++ b/src/include/general.h
@@ -38,5 +38,9 @@
#define DEBUG printf
#endif
+#define ALIGN(x, n) (((x) + (n) - 1) & ~((n) - 1))
+#undef MIN
+#define MIN(x, y) (((x) < (y)) ? (x) : (y))
+
#endif