From 9cbce79ce3668b3eed64636f30dd3b6a62e5c27b Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 18 Jun 2014 14:52:23 +0000 Subject: [PATCH] reordering. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3864 --- src/fpu/fpu_instructions.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fpu/fpu_instructions.h b/src/fpu/fpu_instructions.h index fa59e4ca..1b8329ce 100644 --- a/src/fpu/fpu_instructions.h +++ b/src/fpu/fpu_instructions.h @@ -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");