summaryrefslogtreecommitdiff
path: root/src/mathline.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-24 05:19:50 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commitacbc8ea8b8f3f1b50aac139d3aacabd68ec42ded (patch)
treee46845b03af3e31afcaac069e9e2a6c4016894fc /src/mathline.c
parent90d3747b13a744e725a37c685d8145caab0531a5 (diff)
Removed more unused stuff.
Finally finished ingame OpenGL code (I hope). Fixed another mistake in mathline.c.
Diffstat (limited to 'src/mathline.c')
-rw-r--r--src/mathline.c12
1 files changed, 4 insertions, 8 deletions
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;
}
/*