summaryrefslogtreecommitdiff
path: root/arm9/lib/src
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2021-07-06 00:31:33 +0100
committerred031000 <rubenru09@aol.com>2021-07-06 00:33:32 +0100
commit5f0a31c4470f86aaad37ab56e46ce33f6fb4167b (patch)
tree19c8d969d281590d81226a561790f695011e7b23 /arm9/lib/src
parentf71d98bf2843eb8f4c0a140184a6ffa30ed1f1e5 (diff)
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;
+}