code_80086E70: Match 8008ACE0 (#382)

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
This commit is contained in:
Joshua Peisach
2023-08-25 23:27:49 -04:00
committed by GitHub
parent 0d9396b631
commit 965d1e85b4
2 changed files with 5 additions and 88 deletions
+5 -21
View File
@@ -1411,28 +1411,12 @@ UNUSED void func_8008ACD8(void) {
}
#ifdef MIPS_TO_C
//generated by m2c commit eefca95b040d7ee0c617bc58f9ac6cd1cf7bce87 on Aug-09-2023
void func_8008ACE0(f32 *arg0, f32 arg1) {
f32 temp_f14;
f32 temp_f2;
f64 temp_f0;
f64 temp_f16;
f64 temp_f18;
temp_f0 = (f64) arg1;
temp_f2 = (f32) (1.0 - temp_f0);
temp_f14 = arg1 * arg1;
temp_f18 = (f64) temp_f14;
temp_f16 = (f64) (temp_f14 * arg1);
arg0->unk0 = (f32) ((f64) (temp_f2 * temp_f2 * temp_f2) / 6.0);
arg0->unk4 = (f32) (((temp_f16 * 0.5) - temp_f18) + 0.6666666666666666);
arg0->unk8 = (f32) ((temp_f16 * -0.5) + (0.5 * temp_f18) + (0.5 * temp_f0) + 0.16666666666666666);
arg0->unkC = (f32) (temp_f16 / 6.0);
void func_8008ACE0(f32 arg0[], f32 arg1) {
arg0[0] = (f32) ((f64) ((f32) (1.0 - arg1) * (f32) (1.0 - arg1) * (f32) (1.0 - arg1)) / 6.0);
arg0[1] = (f32) ((((f64) (arg1 * arg1 * arg1) * 0.5) - arg1 * arg1) + 0.6666666666666666);
arg0[2] = (f32) (((f64) (arg1 * arg1 * arg1) * -0.5) + (0.5 * (arg1 * arg1)) + (0.5 * arg1) + 0.16666666666666666);
arg0[3] = (f32) ((f64) (arg1 * arg1 * arg1) / 6.0);
}
#else
GLOBAL_ASM("asm/non_matchings/code_80086E70/func_8008ACE0.s")
#endif
UNUSED void func_8008ADC0(void) {