From acbc8ea8b8f3f1b50aac139d3aacabd68ec42ded Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Fri, 24 Aug 2001 05:19:50 +0000 Subject: Removed more unused stuff. Finally finished ingame OpenGL code (I hope). Fixed another mistake in mathline.c. --- src/mathline.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/mathline.c') diff --git a/src/mathline.c b/src/mathline.c index cd45967..69b9250 100644 --- a/src/mathline.c +++ b/src/mathline.c @@ -494,7 +494,6 @@ __asm__("movl 0(%%esi), %%eax \n\t" int WideMulNarrowDiv(int a, int b, int c) { -#if 0 /* TODO: broken? */ int retval; /* _asm @@ -505,16 +504,13 @@ int WideMulNarrowDiv(int a, int b, int c) mov retval,eax } */ -/* TODO */ -__asm__("imull %2 \n\t" - "idivl %3 \n\t" +__asm__("imull %%ebx \n\t" + "idivl %%ecx \n\t" : "=a" (retval) - : "a" (a), "q" (b), "q" (c) - : "cc" + : "a" (a), "b" (b), "c" (c) + : "%edx", "cc" ); return retval; -#endif - return (a * b) / c; } /* -- cgit v1.3