summaryrefslogtreecommitdiff
path: root/src/mathline.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2003-05-21 03:38:50 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:37 +0200
commitd0484e7829b819b87bf05839f73be4237193985e (patch)
tree335986e251c785737d05c4d90fb1ca7189dc871d /src/mathline.c
parent877a2f9b7cb9ede87d53eceff086adb5ee810a08 (diff)
Converted TranslatePoint to C.
Diffstat (limited to 'src/mathline.c')
-rw-r--r--src/mathline.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mathline.c b/src/mathline.c
index 3416800..50e48a8 100644
--- a/src/mathline.c
+++ b/src/mathline.c
@@ -209,22 +209,22 @@ int CMP_LL(LONGLONGCH *a, LONGLONGCH *b)
llgs:
}
*/
-#if 0
-int retval;
-/* TODO */
+#if 1
+ int retval;
+
__asm__("movl 0(%%ebx), %%eax \n\t"
"movl 4(%%ebx), %%edx \n\t"
"subl 0(%%ecx), %%eax \n\t"
"sbbl 4(%%ecx), %%edx \n\t"
"xorl %%ebx, %%ebx \n\t"
"andl %%edx, %%edx \n\t"
- "jne 0 \n\t" /* llnz */
+ "jne 0f \n\t" /* llnz */
"andl %%eax, %%eax \n\t"
- "je 1 \n" /* llgs */
+ "je 1f \n" /* llgs */
"0: \n\t" /* llnz */
"movl $1, %%ebx \n\t"
"andl %%edx, %%edx \n\t"
- "jge 1 \n\t" /* llgs */
+ "jge 1f \n\t" /* llgs */
"negl %%ebx \n"
"1: \n\t" /* llgs */
: "=b" (retval)
@@ -628,10 +628,9 @@ __asm__ volatile
#endif
}
+#if 0 // SBF - converted to C in kshape.c
void TranslatePoint(float *source, float *dest, float *matrix)
{
-// fprintf(stderr, "TranslatePoint(%f, %f, %f)\n");
-
/* TODO - implement the inline assembly here? */
/* Moved it to a separate file because I can't figure out the damn syntax! */
/* This is currently not inlined for testing */
@@ -640,3 +639,4 @@ __asm__("call TranslatePoint_Asm \n\t"
: "S" (source), "b" (dest), "D" (matrix)
);
}
+#endif