1
0
Fork 0

reordering.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3864
This commit is contained in:
Peter Veenstra 2014-06-18 14:52:23 +00:00
parent 01a09d7086
commit 9cbce79ce3

View file

@ -41,6 +41,12 @@ static void FPU_FNOP(void){
return;
}
static void FPU_PREP_PUSH(void){
TOP = (TOP - 1) &7;
if (GCC_UNLIKELY(fpu.tags[TOP] != TAG_Empty)) E_Exit("FPU stack overflow");
fpu.tags[TOP] = TAG_Valid;
}
static void FPU_PUSH(double in){
FPU_PREP_PUSH();
fpu.regs[TOP].d = in;
@ -48,11 +54,6 @@ static void FPU_PUSH(double in){
return;
}
static void FPU_PREP_PUSH(void){
TOP = (TOP - 1) &7;
if (GCC_UNLIKELY(fpu.tags[TOP] != TAG_Empty)) E_Exit("FPU stack overflow");
fpu.tags[TOP] = TAG_Valid;
}
static void FPU_FPOP(void){
if (GCC_UNLIKELY(fpu.tags[TOP] == TAG_Empty)) E_Exit("FPU stack underflow");