summaryrefslogtreecommitdiff
path: root/arm9/lib/src/FX_mtx22.c
diff options
context:
space:
mode:
authorMade <made111@gmx.de>2020-05-04 17:48:38 +0200
committerMade <made111@gmx.de>2020-05-04 17:48:38 +0200
commitf4c61411673207da9d6be013674f95eeb07408b5 (patch)
treec2a956201b0f5daa9e84c4a0f0fe89ea04c7147a /arm9/lib/src/FX_mtx22.c
parent155f50c9890a93fbc191e078d304c161809e8fc6 (diff)
Add function attributes and remove thumb pragmas
Diffstat (limited to 'arm9/lib/src/FX_mtx22.c')
-rw-r--r--arm9/lib/src/FX_mtx22.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arm9/lib/src/FX_mtx22.c b/arm9/lib/src/FX_mtx22.c
index 19504574..38387c64 100644
--- a/arm9/lib/src/FX_mtx22.c
+++ b/arm9/lib/src/FX_mtx22.c
@@ -2,14 +2,14 @@
#include "main.h"
#include "fx.h"
-void MTX_ScaleApply22(struct Mtx22 *mtx, struct Mtx22 *dst, fx32 x, fx32 y){
+ARM_FUNC void MTX_ScaleApply22(struct Mtx22 *mtx, struct Mtx22 *dst, fx32 x, fx32 y){
dst->_[0] = ((fx64)x * mtx->_[0]) >> FX32_INT_SHIFT;
dst->_[1] = ((fx64)x * mtx->_[1]) >> FX32_INT_SHIFT;
dst->_[2] = ((fx64)y * mtx->_[2]) >> FX32_INT_SHIFT;
dst->_[3] = ((fx64)y * mtx->_[3]) >> FX32_INT_SHIFT;
}
-asm void MTX_Identity22_(struct Mtx22 *mtx){
+ARM_FUNC asm void MTX_Identity22_(struct Mtx22 *mtx){
mov r1, #0x0
mov r2, #0x1000
mov r3, #0x0
@@ -18,8 +18,7 @@ asm void MTX_Identity22_(struct Mtx22 *mtx){
bx lr
}
-#pragma thumb on
-asm void MTX_Rot22_(struct Mtx22 *mtx, fx32 sinphi, fx32 cosphi){
+THUMB_FUNC asm void MTX_Rot22_(struct Mtx22 *mtx, fx32 sinphi, fx32 cosphi){
str r2, [r0, #0x0]
str r1, [r0, #0x4]
neg r1, r1
@@ -27,4 +26,3 @@ asm void MTX_Rot22_(struct Mtx22 *mtx, fx32 sinphi, fx32 cosphi){
str r2, [r0, #0xc]
bx lr
}
-#pragma thumb off