aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/def.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inc/def.h')
-rw-r--r--libc/inc/def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/inc/def.h b/libc/inc/def.h
index db1c95e..c334fcb 100644
--- a/libc/inc/def.h
+++ b/libc/inc/def.h
@@ -25,6 +25,9 @@ typedef unsigned long long u64;
#define UNUSED(a) ((void)(a))
+#define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#define MAX(a, b) (((a) > (b)) ? (a) : (b))
+
#define NORETURN __attribute__((noreturn))
#define NO_SANITIZE __attribute__((no_sanitize("undefined")))
#define PACKED __attribute__((packed))