diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-14 17:59:46 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-14 17:59:46 -0500 |
commit | 4ddf0821a9a24f6e6a6ca60ab6d38e095a88591b (patch) | |
tree | a40b6a51ae892637fcb2823e3f2fa3cf4e8f021d /util.c | |
parent | b006db3fe4da1beb38909232ceaf1c370415c61a (diff) |
scroll to cursor
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |