From 7d74522cdde534cf28cfbef9bbac1492b623f6b5 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 16 Mar 2002 17:12:19 +0000 Subject: [PATCH] workaround lack of -fomit-frame-pointer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5140 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/osd_template.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libvo/osd_template.c b/libvo/osd_template.c index 800bdcd5c2..f24e2daff1 100644 --- a/libvo/osd_template.c +++ b/libvo/osd_template.c @@ -218,30 +218,30 @@ static inline void RENAME(vo_draw_alpha_rgb24)(int w,int h, unsigned char* src, 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