Add math utilities

This commit is contained in:
abdelrahman committed 2024-01-21 22:36:13 +00:00
1 parent 53d0a4698f
commit b329e0feb4
2 files changed
+14

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#ifndef MATH_UTILS_H
#define MATH_UTILS_H
#include "aliases/aliases.h"
i32 min(i32 a, i32 b);
i32 max(i32 a, i32 b);
#endif // !MATH_UTILS_H
+5
View File
@@ -0,0 +1,5 @@
#include "math_utils.h"
i32 min(i32 a, i32 b) { return a <= b ? a : b; }
i32 max(i32 a, i32 b) { return a >= b ? a : b; }