Add math utilities
This commit is contained in:
5
src/math_utils.c
Normal file
5
src/math_utils.c
Normal 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; }
|
Reference in New Issue
Block a user