mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2025-01-09 16:29:24 +01:00
simplify float functions
moves the logic for handling floating point precision into where its relivent
This commit is contained in:
parent
5534c05f75
commit
c4ba480b18
@ -337,6 +337,7 @@ mflr r29
|
|||||||
lfsu f1, 4(r24)
|
lfsu f1, 4(r24)
|
||||||
lis r4, str_floating_precision_INImod@hi
|
lis r4, str_floating_precision_INImod@hi
|
||||||
ori r4, r4, str_floating_precision_INImod@l
|
ori r4, r4, str_floating_precision_INImod@l
|
||||||
|
lbzu r3, 1(r21)
|
||||||
addi r3, r3, 0x30
|
addi r3, r3, 0x30
|
||||||
bl CheckifPrecisionIsValidINImod
|
bl CheckifPrecisionIsValidINImod
|
||||||
stb r3, 2(r4)
|
stb r3, 2(r4)
|
||||||
@ -396,7 +397,6 @@ b PrintSettingsINImod
|
|||||||
;calls sprintf to print the float
|
;calls sprintf to print the float
|
||||||
PrintFloatINImod:
|
PrintFloatINImod:
|
||||||
mflr r28
|
mflr r28
|
||||||
lbzu r3, 1(r21)
|
|
||||||
bl CallsprintfINImod
|
bl CallsprintfINImod
|
||||||
bl PrintNewLineINImod
|
bl PrintNewLineINImod
|
||||||
mtlr r28
|
mtlr r28
|
||||||
@ -413,15 +413,14 @@ PrintAMVPINImod:
|
|||||||
mflr r28
|
mflr r28
|
||||||
lis r19, 0x202C
|
lis r19, 0x202C
|
||||||
ori r19, r19, 0x2000
|
ori r19, r19, 0x2000
|
||||||
lbzu r3, 1(r21)
|
|
||||||
bl CallsprintfINImod
|
bl CallsprintfINImod
|
||||||
stw r19, 0(r30)
|
stw r19, 0(r30)
|
||||||
addi r30, r30, 3
|
addi r30, r30, 3
|
||||||
lbz r3, 0(r21)
|
addi r21, r21, -1
|
||||||
bl CallsprintfINImod
|
bl CallsprintfINImod
|
||||||
stw r19, 0(r30)
|
stw r19, 0(r30)
|
||||||
addi r30, r30, 3
|
addi r30, r30, 3
|
||||||
lbz r3, 0(r21)
|
addi r21, r21, -1
|
||||||
bl CallsprintfINImod
|
bl CallsprintfINImod
|
||||||
bl PrintNewLineINImod
|
bl PrintNewLineINImod
|
||||||
mtlr r28
|
mtlr r28
|
||||||
|
Loading…
x
Reference in New Issue
Block a user