mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
ppcfpopcodes: Fix fres.
Don't convert to float until the end.
This commit is contained in:
parent
59bee01c0a
commit
2a05ccbee1
@ -589,9 +589,7 @@ void dppc_interpreter::ppc_frsp() {
|
|||||||
void dppc_interpreter::ppc_fres() {
|
void dppc_interpreter::ppc_fres() {
|
||||||
ppc_grab_regsfpdb();
|
ppc_grab_regsfpdb();
|
||||||
double start_num = GET_FPR(reg_b);
|
double start_num = GET_FPR(reg_b);
|
||||||
float testf2 = (float)start_num;
|
double ppc_dblresult64_d = (float)(1.0 / start_num);
|
||||||
testf2 = 1 / testf2;
|
|
||||||
double ppc_dblresult64_d = (double)testf2;
|
|
||||||
ppc_store_dfpresult_flt(reg_d);
|
ppc_store_dfpresult_flt(reg_d);
|
||||||
|
|
||||||
if (start_num == 0.0) {
|
if (start_num == 0.0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user