summaryrefslogtreecommitdiff
path: root/arm9/lib/src
diff options
context:
space:
mode:
authorAkira Akashi <rubenru09@aol.com>2021-07-08 03:55:47 +0100
committerGitHub <noreply@github.com>2021-07-08 03:55:47 +0100
commitc29ce2882c424ddbc150cb2badddc228ae15fbc5 (patch)
tree37f6b4383a10204bd75ef632e76b2b755c909d50 /arm9/lib/src
parenteef820ba4669a78a62d106ea1ddb0380bd28ef20 (diff)
parent79d007487abb2706c42f2d01d74c8d8a41e6ac43 (diff)
Merge branch 'master' into communication_error
Diffstat (limited to 'arm9/lib/src')
-rw-r--r--arm9/lib/src/MSL_Common_arith.c7
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;
+}