summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-14 17:59:46 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-14 17:59:46 -0500
commit4ddf0821a9a24f6e6a6ca60ab6d38e095a88591b (patch)
treea40b6a51ae892637fcb2823e3f2fa3cf4e8f021d /util.c
parentb006db3fe4da1beb38909232ceaf1c370415c61a (diff)
scroll to cursor
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