aboutsummaryrefslogtreecommitdiff
path: root/src/engine/maths.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/maths.h')
-rw-r--r--src/engine/maths.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine/maths.h b/src/engine/maths.h
index bef287e..6f66042 100644
--- a/src/engine/maths.h
+++ b/src/engine/maths.h
@@ -20,3 +20,4 @@ vec_cor vec_cor2cen(vec_cen in, vec2 halfDistance);
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#define CLAMP(N,LOWER,UPPER) (MIN(MAX(LOWER, N), UPPER))
+#define CEILI(numerator, denominator) (numerator / denominator + (numerator % denominator != 0))