summaryrefslogtreecommitdiff
path: root/kernel/includes/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/includes/math.h')
-rw-r--r--kernel/includes/math.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/includes/math.h b/kernel/includes/math.h
index 19fc595..87a9d37 100644
--- a/kernel/includes/math.h
+++ b/kernel/includes/math.h
@@ -1,2 +1,3 @@
-int min(int a, int b);
-int max(int a, int b);
+#define min(a,b) ((a) > (b) ? (b) : (a))
+#define max(a,b) ((a) < (b) ? (b) : (a))
+#define abs(a) ((a)>0?(a):(-1*(a)))