x86-32 recompiler performs float->integer rounding by loading FPU control word instead of calling helper function - speedup on some stuff.
This commit is contained in:
parent
aab2c3e7cf
commit
dd2a608707
6 changed files with 88 additions and 182 deletions
|
|
@ -563,6 +563,11 @@ void codegen_init()
|
|||
mem_store_addr_ea_b = gen_MEM_STORE_ADDR_EA_B();
|
||||
block_pos = 1024;
|
||||
mem_store_addr_ea_q = gen_MEM_STORE_ADDR_EA_Q();
|
||||
|
||||
asm(
|
||||
"fstcw %0\n"
|
||||
: "=m" (cpu_state.old_npxc)
|
||||
);
|
||||
}
|
||||
|
||||
void codegen_reset()
|
||||
|
|
|
|||
Loading…
Reference in a new issue