summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-20 16:23:48 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-20 16:23:48 +0000
commit902bcf5fbd27c4d21dc397c37ea89ef544ac213f (patch)
tree4c5d637e85ab9e100ef74bbb5ad7fcc0a063b97e
parent1c91e6157f4b71696ae212cb89fd22cc6443bd42 (diff)
downloadmpv-902bcf5fbd27c4d21dc397c37ea89ef544ac213f.tar.bz2
mpv-902bcf5fbd27c4d21dc397c37ea89ef544ac213f.tar.xz
Do _not_ use rbx on x86_64, it will fail to compile with PIC, besides it
added completely pointless code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29016 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libswscale/swscale_template.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index 7faeff90c9..971b69c98d 100644
--- a/libswscale/swscale_template.c
+++ b/libswscale/swscale_template.c
@@ -1245,18 +1245,17 @@ static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *
if (CONFIG_SWSCALE_ALPHA && c->alpPixBuf){
#if ARCH_X86_64
__asm__ volatile(
- "mov %4, %%"REG_b" \n\t"
YSCALEYUV2RGB(%%REGBP, %5)
YSCALEYUV2RGB_YA(%%REGBP, %5, %6, %7)
"psraw $3, %%mm1 \n\t" /* abuf0[eax] - abuf1[eax] >>7*/
"psraw $3, %%mm7 \n\t" /* abuf0[eax] - abuf1[eax] >>7*/
"packuswb %%mm7, %%mm1 \n\t"
- WRITEBGR32(%%REGb, 8280(%5), %%REGBP, %%mm2, %%mm4, %%mm5, %%mm1, %%mm0, %%mm7, %%mm3, %%mm6)
+ WRITEBGR32(%4, 8280(%5), %%REGBP, %%mm2, %%mm4, %%mm5, %%mm1, %%mm0, %%mm7, %%mm3, %%mm6)
- :: "c" (buf0), "d" (buf1), "S" (uvbuf0), "D" (uvbuf1), "m" (dest),
+ :: "c" (buf0), "d" (buf1), "S" (uvbuf0), "D" (uvbuf1), "r" (dest),
"a" (&c->redDither)
,"r" (abuf0), "r" (abuf1)
- : "%"REG_b, "%"REG_BP
+ : "%"REG_BP
);
#else
*(uint16_t **)(&c->u_temp)=abuf0;