aboutsummaryrefslogtreecommitdiff
path: root/src/common.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-16 05:28:18 +0200
committerlemon <lsof@mailbox.org>2022-08-16 05:28:18 +0200
commit73f68a9c5ed4c8139cc1c4f7695da29e5a3fb4c8 (patch)
treeb2cebcf1f6b6073eeeb0595710d6fdf05fcb06fb /src/common.hff
parentb3159bfd93c8bdce71f7437abdc521b5ccb72367 (diff)
stuff
Diffstat (limited to 'src/common.hff')
-rw-r--r--src/common.hff2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.hff b/src/common.hff
index fe90e09..02859f8 100644
--- a/src/common.hff
+++ b/src/common.hff
@@ -40,6 +40,8 @@ defmacro with_tmpchange(var,x,...body) [
(var) = $tmp; }
]
+defmacro MAX(a,b) [((a) > (b) ? (a) : (b))]
+
// Inline functions
fn bswap32(x u32) u32 {
return (x >> 24)