diff options
| author | kipcode66 <kipcode66@gmail.com> | 2025-12-07 00:08:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-06 21:08:05 -0800 |
| commit | fc31053cb6cbae738923c93f4ab574b06334d73d (patch) | |
| tree | f47a4ddc2b88d00a87617a56e8489b2f60028bb8 /include/JSystem/J2DGraph | |
| parent | 7ac2c38caf44f8b20088a4f0376371ce15c78844 (diff) | |
Improving compatibility with standard cpp compiler (#2920)
* Improving compatibility with standard cpp compiler
* Add __REGISTER macro for non mwcc compatibility
* Fix for PR comments
* fix missing define for revolution
* Simplifying cSAngle conversion
Diffstat (limited to 'include/JSystem/J2DGraph')
| -rw-r--r-- | include/JSystem/J2DGraph/J2DAnimation.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/include/JSystem/J2DGraph/J2DAnimation.h b/include/JSystem/J2DGraph/J2DAnimation.h index 35010e62fb..380e9c93de 100644 --- a/include/JSystem/J2DGraph/J2DAnimation.h +++ b/include/JSystem/J2DGraph/J2DAnimation.h @@ -479,26 +479,26 @@ inline f32 J2DHermiteInterpolation<f32>(f32 f1, f32* f2, f32* f3, f32* f4, f32* } template <> -inline f32 J2DHermiteInterpolation<s16>(register f32 pp1, register s16* pp2, register s16* pp3, - register s16* pp4, register s16* pp5, register s16* pp6, - register s16* pp7) { +inline f32 J2DHermiteInterpolation<s16>(__REGISTER f32 pp1, __REGISTER s16* pp2, __REGISTER s16* pp3, + __REGISTER s16* pp4, __REGISTER s16* pp5, __REGISTER s16* pp6, + __REGISTER s16* pp7) { #ifdef __MWERKS__ - register f32 p1 = pp1; - register f32 ff8; - register f32 ff7; - register f32 ff6; - register f32 ff5; - register f32 ff4; - register f32 ff3; - register f32 ff2; - register f32 ff0; - register f32 fout; - register s16* p2 = pp2; - register s16* p3 = pp3; - register s16* p4 = pp4; - register s16* p5 = pp5; - register s16* p6 = pp6; - register s16* p7 = pp7; + __REGISTER f32 p1 = pp1; + __REGISTER f32 ff8; + __REGISTER f32 ff7; + __REGISTER f32 ff6; + __REGISTER f32 ff5; + __REGISTER f32 ff4; + __REGISTER f32 ff3; + __REGISTER f32 ff2; + __REGISTER f32 ff0; + __REGISTER f32 fout; + __REGISTER s16* p2 = pp2; + __REGISTER s16* p3 = pp3; + __REGISTER s16* p4 = pp4; + __REGISTER s16* p5 = pp5; + __REGISTER s16* p6 = pp6; + __REGISTER s16* p7 = pp7; // clang-format off asm { psq_l ff2, 0(p2), 0x1, 5 |
