summaryrefslogtreecommitdiff
path: root/arm9/lib/src/FX_vec.c
diff options
context:
space:
mode:
authorMade <made111@gmx.de>2020-05-02 17:39:44 +0200
committerMade <made111@gmx.de>2020-05-02 17:39:44 +0200
commitdba3fd7f6eb8d0895bec720db75a6b37fc7259a0 (patch)
treeb714c3f553bb3387ed822d0fe6f7f1f07c496d22 /arm9/lib/src/FX_vec.c
parent3a51b862659071a4dab8296f1c9cfbe38d287887 (diff)
Decompile FX_cp.s
Diffstat (limited to 'arm9/lib/src/FX_vec.c')
-rw-r--r--arm9/lib/src/FX_vec.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arm9/lib/src/FX_vec.c b/arm9/lib/src/FX_vec.c
index dc28bedf..7b838829 100644
--- a/arm9/lib/src/FX_vec.c
+++ b/arm9/lib/src/FX_vec.c
@@ -51,23 +51,6 @@ void VEC_Fx16CrossProduct(struct Vecx16 *a, struct Vecx16 *b, struct Vecx16 *dst
dst->z = z;
}
-#define HW_REG_DIVCNT 0x04000280
-#define HW_REG_DIV_NUMER 0x04000290
-#define HW_REG_DIV_DENOM 0x04000298
-#define HW_REG_DIV_RESULT 0x040002A0
-#define HW_REG_DIVREM_RESULT 0x040002A8
-
-#define HW_REG_SQRTCNT 0x040002B0
-#define HW_REG_SQRT_RESULT 0x040002B4
-#define HW_REG_SQRT_PARAM 0x040002B8
-
-#define SETREG16(x, y) ((*(vu16 *)x) = y)
-#define SETREG32(x, y) ((*(vu32 *)x) = y)
-#define SETREG64(x, y) ((*(vu64 *)x) = y)
-#define READREG16(x) (*(vu16 *)x)
-#define READREG32(x) (*(vu32 *)x)
-#define READREG64(x) (*(vu64 *)x)
-
s32 VEC_Mag(struct Vecx32 *a){
s64 l2 = (s64)a->x * a->x;
l2 += (s64)a->y * a->y;