From 715274d3a77c58510b97c3f87cd604dde9de7a4f Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 27 Oct 2023 19:39:54 +0200 Subject: Kernel: Move min, max functions to their own file --- math.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 math.c (limited to 'math.c') 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 +int min(int a, int b) { return ((a) > (b) ? b : a); } +int max(int a, int b) { return (a > b) ? a : b; } -- cgit v1.2.3