summaryrefslogtreecommitdiff
path: root/arm9/lib/src
diff options
context:
space:
mode:
authorRevo <projectrevotpp@hotmail.com>2021-07-07 22:52:15 -0400
committerGitHub <noreply@github.com>2021-07-07 22:52:15 -0400
commit79d007487abb2706c42f2d01d74c8d8a41e6ac43 (patch)
tree73aeafb7a405d717b71814a46aa461b4fd017244 /arm9/lib/src
parentf71d98bf2843eb8f4c0a140184a6ffa30ed1f1e5 (diff)
parent49a17b6a1803703e6dd7d01d0a0e59adc4d6d4d4 (diff)
Merge pull request #428 from red031000/master
decompile MSL_Common_arith
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;
+}