summaryrefslogtreecommitdiff
path: root/libs/JSystem/JMath/JMath.cpp
diff options
context:
space:
mode:
authorTrueffel <106771418+Trueffeloot@users.noreply.github.com>2024-03-30 20:45:15 +0100
committerGitHub <noreply@github.com>2024-03-30 22:45:15 +0300
commit9f46b4bea27205b850a40dc04f1f6582ea5f59f4 (patch)
treee5d266143166e78c49a3f0498721906a59a59681 /libs/JSystem/JMath/JMath.cpp
parent99facf7c94d55656d0750b389d85f20573564c60 (diff)
Match all funcs in d_menu_ring (#2113)
* d_menu_ring OK but something is not matchin * at least matching without NONMATCHING again * add note * some docs about items * fix i_nameID and i_expID * revert my setBlackWhite change * remove unused asm * update progress * m_Do_graphic functions match but I'm not able to remove data
Diffstat (limited to 'libs/JSystem/JMath/JMath.cpp')
-rw-r--r--libs/JSystem/JMath/JMath.cpp32
1 files changed, 1 insertions, 31 deletions
diff --git a/libs/JSystem/JMath/JMath.cpp b/libs/JSystem/JMath/JMath.cpp
index 0ce312a5a3..37c31b017a 100644
--- a/libs/JSystem/JMath/JMath.cpp
+++ b/libs/JSystem/JMath/JMath.cpp
@@ -4,31 +4,11 @@
//
#include "JSystem/JMath/JMath.h"
+#include "JSystem/JMath/JMATrigonometric.h"
#include "dol2asm.h"
-//
-// Forward References:
-//
-
-extern "C" void JMAEulerToQuat__FsssP10Quaternion();
-extern "C" void JMAQuatLerp__FPC10QuaternionPC10QuaternionfP10Quaternion();
-extern "C" void JMAFastVECNormalize__FPC3VecP3Vec();
-extern "C" void JMAVECScaleAdd__FPC3VecPC3VecP3Vecf();
-extern "C" void JMAMTXApplyScale__FPA4_CfPA4_ffff();
-
-//
-// External References:
-//
-
-extern "C" u8 sincosTable___5JMath[65536];
-
-//
-// Declarations:
-//
-
/* 80339878-80339938 3341B8 00C0+00 0/0 11/11 2/2 .text JMAEulerToQuat__FsssP10Quaternion
*/
-#ifdef NONMATCHING
void JMAEulerToQuat(s16 x, s16 y, s16 z, Quaternion* quat) {
f32 cosX = JMASCos(x / 2);
f32 cosY = JMASCos(y / 2);
@@ -44,16 +24,6 @@ void JMAEulerToQuat(s16 x, s16 y, s16 z, Quaternion* quat) {
quat->y = cosZ * (cosX * sinY) + sinZ * (sinX * cosY);
quat->z = sinZ * (cosX * cosY) - cosZ * (sinX * sinY);
}
-#else
-#pragma push
-#pragma optimization_level 0
-#pragma optimizewithasm off
-asm void JMAEulerToQuat(s16 param_0, s16 param_1, s16 param_2, Quaternion* param_3) {
- nofralloc
-#include "asm/JSystem/JMath/JMath/JMAEulerToQuat__FsssP10Quaternion.s"
-}
-#pragma pop
-#endif
/* 80339938-80339A30 334278 00F8+00 0/0 5/5 0/0 .text
* JMAQuatLerp__FPC10QuaternionPC10QuaternionfP10Quaternion */