mirror of
https://github.com/n64decomp/mk64
synced 2026-09-09 03:20:11 -04:00
Match one function, update mips_to_c of 2 others (#164)
There's a function that appears to use continued fractions to approximate the value of tanh(x/2), which is super weird. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
glabel func_80091A6C
|
||||
/* 09266C 80091A6C 04C00006 */ bltz $a2, .L80091A88
|
||||
/* 092670 80091A70 3C013FE0 */ li $at, 0x3FE00000 # 1.750000
|
||||
/* 092674 80091A74 3C014000 */ li $at, 0x40000000 # 2.000000
|
||||
/* 092678 80091A78 44810800 */ mtc1 $at, $f1
|
||||
/* 09267C 80091A7C 44800000 */ mtc1 $zero, $f0
|
||||
/* 092680 80091A80 10000004 */ b .L80091A94
|
||||
/* 092684 80091A84 00000000 */ nop
|
||||
.L80091A88:
|
||||
/* 092688 80091A88 44810800 */ mtc1 $at, $f1
|
||||
/* 09268C 80091A8C 44800000 */ mtc1 $zero, $f0
|
||||
/* 092690 80091A90 00063023 */ negu $a2, $a2
|
||||
.L80091A94:
|
||||
/* 092694 80091A94 10C00008 */ beqz $a2, .L80091AB8
|
||||
.L80091A98:
|
||||
/* 092698 80091A98 30CE0001 */ andi $t6, $a2, 1
|
||||
/* 09269C 80091A9C 11C00003 */ beqz $t6, .L80091AAC
|
||||
/* 0926A0 80091AA0 00067843 */ sra $t7, $a2, 1
|
||||
/* 0926A4 80091AA4 46206302 */ mul.d $f12, $f12, $f0
|
||||
/* 0926A8 80091AA8 00000000 */ nop
|
||||
.L80091AAC:
|
||||
/* 0926AC 80091AAC 46200002 */ mul.d $f0, $f0, $f0
|
||||
/* 0926B0 80091AB0 15E0FFF9 */ bnez $t7, .L80091A98
|
||||
/* 0926B4 80091AB4 01E03025 */ move $a2, $t7
|
||||
.L80091AB8:
|
||||
/* 0926B8 80091AB8 03E00008 */ jr $ra
|
||||
/* 0926BC 80091ABC 46206006 */ mov.d $f0, $f12
|
||||
Reference in New Issue
Block a user