summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
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;
}