diff options
author | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-07-08 09:46:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 09:46:21 +0200 |
commit | 948727e73dfd5250bc0de03489a51d433982dfe0 (patch) | |
tree | 0195f92c26cbe7eb7ea08dc021cb486d3b3a39e0 /arm9/lib/src/MSL_Common_arith.c | |
parent | 019ca636430a8addc98e189b84cb1f5cc1f8c47f (diff) | |
parent | 79d007487abb2706c42f2d01d74c8d8a41e6ac43 (diff) |
Merge branch 'master' into unk_020040F4
Diffstat (limited to 'arm9/lib/src/MSL_Common_arith.c')
-rw-r--r-- | arm9/lib/src/MSL_Common_arith.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arm9/lib/src/MSL_Common_arith.c b/arm9/lib/src/MSL_Common_arith.c new file mode 100644 index 00000000..d4a2e834 --- /dev/null +++ b/arm9/lib/src/MSL_Common_arith.c @@ -0,0 +1,7 @@ +#include "MSL_Common_arith.h" +#include "function_target.h" + +ARM_FUNC s32 abs(s32 val) +{ + return val < 0 ? -val : val; +} |