From dba3fd7f6eb8d0895bec720db75a6b37fc7259a0 Mon Sep 17 00:00:00 2001 From: Made Date: Sat, 2 May 2020 17:39:44 +0200 Subject: Decompile FX_cp.s --- arm9/lib/src/FX_vec.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'arm9/lib/src/FX_vec.c') 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; -- cgit v1.2.3