Fixed FPU assembly. (fistp is 16bit, fistpl is 32bit)

Game displays now.
This commit is contained in:
Steven Fuller 2001-08-09 06:23:42 +00:00 committed by Patryk Obara
parent 45cf2eb3a1
commit ea2f8c4527
5 changed files with 64 additions and 27 deletions

View file

@ -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