diff options
author | Anton Kling <anton@kling.gg> | 2023-10-27 19:39:54 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-30 21:49:48 +0100 |
commit | 715274d3a77c58510b97c3f87cd604dde9de7a4f (patch) | |
tree | f3f71248419f3395badc1b3bd9f64bd63dc3ae8c /math.c | |
parent | 8eede5fd642db2c56a1f5185973815fbd2b0afa4 (diff) |
Kernel: Move min, max functions to their own file
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |