Avoid reallocating 64-bit register arrays on every 64-bit division

This commit is contained in:
Jeff Parsons 2017-02-12 22:24:06 -08:00 • committed by Jeff Parsons
commit 92a919c927
6 changed files with 348 additions and 341 deletions

View file

@ -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)
/*