diff options
| author | Steven Fuller <relnev@icculus.org> | 2007-01-12 08:19:57 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | 0e484b73da4e8b577a0c7e368c52cfee281c1ef7 (patch) | |
| tree | af4ceb5c908ddc2567469a06876ea2d17c94af09 /src/mathline.c | |
| parent | 785c016a2867676a041e27ce25e33c67f026fa4e (diff) | |
disabled some more assembly.
trying out passing NULL to SDL_GL_LoadLibrary by default.
Diffstat (limited to 'src/mathline.c')
| -rw-r--r-- | src/mathline.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mathline.c b/src/mathline.c index d01596a..8177ccd 100644 --- a/src/mathline.c +++ b/src/mathline.c @@ -574,7 +574,7 @@ typedef struct matrixch { */ -extern volatile int sqrt_temp; +volatile int sqrt_temp; int SqRoot32(int A) { @@ -589,6 +589,7 @@ int SqRoot32(int A) } */ +#if 0 __asm__ volatile ("finit \n\t" "fildl %0 \n\t" @@ -601,6 +602,9 @@ __asm__ volatile ); return sqrt_temp; +#else + return sqrt( (float)A ); +#endif } /* @@ -610,12 +614,12 @@ __asm__ volatile */ -extern volatile float fti_fptmp; -extern volatile int fti_itmp; +volatile float fti_fptmp; +volatile int fti_itmp; void FloatToInt() { -#if 1 +#if 0 __asm__ volatile ("flds fti_fptmp \n\t" "fistpl fti_itmp \n\t" |
