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 | |
parent | 019ca636430a8addc98e189b84cb1f5cc1f8c47f (diff) | |
parent | 79d007487abb2706c42f2d01d74c8d8a41e6ac43 (diff) |
Merge branch 'master' into unk_020040F4
Diffstat (limited to 'arm9/lib')
-rw-r--r-- | arm9/lib/include/MSL.h | 8 | ||||
-rw-r--r-- | arm9/lib/include/MSL_Common_arith.h | 8 | ||||
-rw-r--r-- | arm9/lib/src/MSL_Common_arith.c | 7 |
3 files changed, 23 insertions, 0 deletions
diff --git a/arm9/lib/include/MSL.h b/arm9/lib/include/MSL.h new file mode 100644 index 00000000..a1709bc4 --- /dev/null +++ b/arm9/lib/include/MSL.h @@ -0,0 +1,8 @@ +#ifndef MSL_H +#define MSL_H + +//include all msl files here + +#include "MSL_Common_arith.h" + +#endif //MSL_H diff --git a/arm9/lib/include/MSL_Common_arith.h b/arm9/lib/include/MSL_Common_arith.h new file mode 100644 index 00000000..3ec6bdbc --- /dev/null +++ b/arm9/lib/include/MSL_Common_arith.h @@ -0,0 +1,8 @@ +#ifndef MSL_COMMON_ARITH_H +#define MSL_COMMON_ARITH_H + +#include "nitro/types.h" + +s32 abs(s32 val); + +#endif //MSL_COMMON_ARITH_H 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; +} |