diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-05-12 16:14:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 16:14:40 -0400 |
commit | 2bec462a65cd2f593cf539e8e45b9f64f3b0c3b7 (patch) | |
tree | b25a0204df19308806f3e22ceabcdb2ae73829ff /arm9/lib/src | |
parent | 8a521f1ffe308c67251a69f400f530dec80a0028 (diff) | |
parent | 1adb71560d0df08263a75ed6bb5e59124ba4d1d3 (diff) |
Merge pull request #79 from red031000/master
more registers
Diffstat (limited to 'arm9/lib/src')
-rw-r--r-- | arm9/lib/src/FX_cp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arm9/lib/src/FX_cp.c b/arm9/lib/src/FX_cp.c index 0c03f673..3b6e6c96 100644 --- a/arm9/lib/src/FX_cp.c +++ b/arm9/lib/src/FX_cp.c @@ -55,16 +55,16 @@ ARM_FUNC void FX_DivAsync(fx32 numerator, fx32 denominator){ ARM_FUNC fx32 FX_DivS32(fx32 numerator, fx32 denominator){ reg_CP_DIVCNT = 0x0; - *(REGType32 *)®_CP_DIV_NUMER = (u32)numerator; //32bit write for some reason + *(REGType32v *)®_CP_DIV_NUMER = (u32)numerator; //32bit write for some reason reg_CP_DIV_DENOM = (u32)denominator; while (reg_CP_DIVCNT & 0x8000); - return *(REGType32 *)®_CP_DIV_RESULT; + return *(REGType32v *)®_CP_DIV_RESULT; } ARM_FUNC fx32 FX_ModS32(fx32 num, fx32 mod){ reg_CP_DIVCNT = 0x0; - *(REGType32 *)®_CP_DIV_NUMER = (u32)num; //32bit write for some reason + *(REGType32v *)®_CP_DIV_NUMER = (u32)num; //32bit write for some reason reg_CP_DIV_DENOM = (u32)mod; while (reg_CP_DIVCNT & 0x8000); - return *(REGType32 *)®_CP_DIVREM_RESULT; + return *(REGType32v *)®_CP_DIVREM_RESULT; } |