summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.c b/util.c
index c1446a8..e183461 100644
--- a/util.c
+++ b/util.c
@@ -25,4 +25,12 @@ static void util_zero_memory(void *mem, size_t size) {
memset(mem, 0, size);
}
+static double util_maxd(double a, double b) {
+ return a > b ? a : b;
+}
+
+static double util_mind(double a, double b) {
+ return a < b ? a : b;
+}
+
#endif