summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-27 19:39:54 +0200
committerAnton Kling <anton@kling.gg>2023-10-30 21:49:48 +0100
commit715274d3a77c58510b97c3f87cd604dde9de7a4f (patch)
treef3f71248419f3395badc1b3bd9f64bd63dc3ae8c /math.c
parent8eede5fd642db2c56a1f5185973815fbd2b0afa4 (diff)
Kernel: Move min, max functions to their own file
Diffstat (limited to 'math.c')
-rw-r--r--math.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/math.c b/math.c
new file mode 100644
index 0000000..2d5e30c
--- /dev/null
+++ b/math.c
@@ -0,0 +1,3 @@
+#include <math.h>
+int min(int a, int b) { return ((a) > (b) ? b : a); }
+int max(int a, int b) { return (a > b) ? a : b; }