changeset 5139:473058a6211e

workaround lack of -fomit-frame-pointer
author michael
date Sat, 16 Mar 2002 17:12:19 +0000
parents fce3b54250b1
children dd16d3ebdf5a
files libvo/osd_template.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/osd_template.c	Sat Mar 16 17:10:15 2002 +0000
+++ b/libvo/osd_template.c	Sat Mar 16 17:12:19 2002 +0000
@@ -218,30 +218,30 @@
 	    asm volatile(
 		"movzbl (%0), %%ecx\n\t"
 		"movzbl 1(%0), %%eax\n\t"
-		"movzbl 2(%0), %%edx\n\t"
 
 		"imull %1, %%ecx\n\t"
 		"imull %1, %%eax\n\t"
-		"imull %1, %%edx\n\t"
 
- 		"addl %2, %%ecx\n\t"
+		"addl %2, %%ecx\n\t"
 		"addl %2, %%eax\n\t"
-		"addl %2, %%edx\n\t"
 
 		"movb %%ch, (%0)\n\t"
 		"movb %%ah, 1(%0)\n\t"
-		"movb %%dh, 2(%0)\n\t"
-
+		
+                "movzbl 2(%0), %%eax\n\t"
+		"imull %1, %%eax\n\t"
+		"addl %2, %%eax\n\t"
+		"movb %%ah, 2(%0)\n\t"
 		:
 		:"r" (dst),
 		 "r" ((unsigned)srca[x]),
 		 "r" (((unsigned)src[x])<<8)
-		:"%eax", "%ecx", "%edx"
+		:"%eax", "%ecx"
 		);
             }
 	    dst += 3;
         }
-#endif /* HAVE_MMX */
+#endif /* !HAVE_MMX */
 #else /*non x86 arch*/
         for(x=0;x<w;x++){
             if(srca[x]){