Avoid reallocating 64-bit register arrays on every 64-bit division
This commit is contained in:
parent
bfab39cf5a
commit
92a919c927
6 changed files with 348 additions and 341 deletions
|
|
@ -1050,6 +1050,8 @@ class X86CPU extends CPU {
|
|||
*/
|
||||
this.fMDSet = false; // regMDHi and/or regMDLo are invalid unless fMDSet is true
|
||||
this.regMDLo = this.regMDHi = 0;
|
||||
this.r64Div = [0, 0];
|
||||
this.r64Rem = [0, 0];
|
||||
this.regXX = 0; // for internal use only (eg, assists with ModRM helper functions)
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue