From 012ba34af766c17e9fe33c40db31ad9f6093f9e1 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sun, 3 Mar 2024 19:47:15 -0500 Subject: [PATCH] jstudio-math OK --- configure.py | 2 +- src/JSystem/JStudio/JStudio/jstudio-math.cpp | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/configure.py b/configure.py index 52dec5ae0..54264c863 100644 --- a/configure.py +++ b/configure.py @@ -601,7 +601,7 @@ config.libs = [ [ Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-control.cpp"), Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-data.cpp"), - Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-math.cpp"), + Object(Matching, "JSystem/JStudio/JStudio/jstudio-math.cpp"), Object(NonMatching, "JSystem/JStudio/JStudio/jstudio-object.cpp"), Object(NonMatching, "JSystem/JStudio/JStudio/functionvalue.cpp"), Object(NonMatching, "JSystem/JStudio/JStudio/fvb.cpp"), diff --git a/src/JSystem/JStudio/JStudio/jstudio-math.cpp b/src/JSystem/JStudio/JStudio/jstudio-math.cpp index 83c88c157..4492624b4 100644 --- a/src/JSystem/JStudio/JStudio/jstudio-math.cpp +++ b/src/JSystem/JStudio/JStudio/jstudio-math.cpp @@ -11,13 +11,12 @@ namespace math { /* 8026E610-8026E778 .text getRotation_xyz__Q27JStudio4mathFPA4_ffff */ void getRotation_xyz(MtxP param_1, f32 x, f32 y, f32 z) { - /* Nonmatching - regalloc */ - f32 cosx = cos(DEG_TO_RAD(x)); - f32 sinx = sin(DEG_TO_RAD(x)); - f32 cosy = cos(DEG_TO_RAD(y)); - f32 siny = sin(DEG_TO_RAD(y)); - f32 cosz = cos(DEG_TO_RAD(z)); - f32 sinz = sin(DEG_TO_RAD(z)); + f32 cosx = i_cosf(DEG_TO_RAD(x)); + f32 sinx = i_sinf(DEG_TO_RAD(x)); + f32 cosy = i_cosf(DEG_TO_RAD(y)); + f32 siny = i_sinf(DEG_TO_RAD(y)); + f32 cosz = i_cosf(DEG_TO_RAD(z)); + f32 sinz = i_sinf(DEG_TO_RAD(z)); f32 cosxcosz = cosx * cosz; f32 cosxsinz = cosx * sinz; f32 sinxcosz = sinx * cosz;