summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-29 23:02:42 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-29 23:02:42 -0500
commit642b09558e586d47f172fcfd18c296d400317708 (patch)
tree796666be6c3721a3c70dad66bd94c902b297e8ab /math.c
parent51837743b0f90973bf63582a8f34662e9677629e (diff)
started config file
Diffstat (limited to 'math.c')
-rw-r--r--math.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/math.c b/math.c
index cd121d0..2909c66 100644
--- a/math.c
+++ b/math.c
@@ -66,6 +66,14 @@ static float maxf(float a, float b) {
return a > b ? a : b;
}
+static double maxd(double a, double b) {
+ return a > b ? a : b;
+}
+
+static double mind(double a, double b) {
+ return a < b ? a : b;
+}
+
static u32 minu32(u32 a, u32 b) {
return a < b ? a : b;
}