From ea2f8c4527f401e721717177a11306213c13eac1 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Thu, 9 Aug 2001 06:23:42 +0000 Subject: Fixed FPU assembly. (fistp is 16bit, fistpl is 32bit) Game displays now. --- src/win95/inline.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/win95') diff --git a/src/win95/inline.h b/src/win95/inline.h index 52ea527..3bd280d 100644 --- a/src/win95/inline.h +++ b/src/win95/inline.h @@ -1132,8 +1132,20 @@ int WideMulNarrowDiv(int a, int b, int c); void RotateVector_ASM(VECTORCH *v, MATRIXCH *m); void RotateAndCopyVector_ASM(VECTORCH *v1, VECTORCH *v2, MATRIXCH *m); +/* int FloatToInt(float); #define f2i(a, b) { a = FloatToInt(b); } +*/ + +int SqRoot32(int A); +void FloatToInt(); +extern float fti_fptmp; +extern int fti_itmp; + +#define f2i(a, b) { \ +fti_fptmp = (b); \ +FloatToInt(); \ +a = fti_itmp;} #else /* inline stuff */ @@ -1869,6 +1881,16 @@ __asm__("fld fti_fptmp \n\t" a = FloatToInt(b); \ } + +#if 0 +int SqRoot32(int A); +void FloatToInt(); +#define f2i(a, b) { \ +fti_fptmp = (b); \ +FloatToInt(); \ +a = fti_itmp;} +#endif + #endif #endif -- cgit v1.3