aboutsummaryrefslogtreecommitdiff
path: root/src/util_ct.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util_ct.h')
-rw-r--r--src/util_ct.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util_ct.h b/src/util_ct.h
index 1aadbe2..c8068c7 100644
--- a/src/util_ct.h
+++ b/src/util_ct.h
@@ -4,6 +4,8 @@
#define PRNE_LIMIT_ENUM(t,x,l) _Static_assert(x<=l,"enum overflow: "#t)
+#define prne_op_min(a, b) (a < b ? a : b)
+#define prne_op_max(a, b) (a > b ? a : b)
#define prne_op_spaceship(a, b) (a == b ? 0 : a < b ? -1 : 1)
#if !defined(memzero)