1 Jan 2010 10:46
r30160 - trunk/libswscale/swscale_template.c
reimar <subversion <at> mplayerhq.hu>
2010-01-01 09:46:25 GMT
2010-01-01 09:46:25 GMT
Author: reimar
Date: Fri Jan 1 10:46:24 2010
New Revision: 30160
Log:
Do not needlessly use the BP register in x86_64-specific code, there are
enough other registers available that are less likely to cause issues.
Modified:
trunk/libswscale/swscale_template.c
Modified: trunk/libswscale/swscale_template.c
==============================================================================
--- trunk/libswscale/swscale_template.c Fri Jan 1 02:25:35 2010 (r30159)
+++ trunk/libswscale/swscale_template.c Fri Jan 1 10:46:24 2010 (r30160)
<at> <at> -1226,17 +1226,17 <at> <at> static inline void RENAME(yuv2packed2)(S
if (CONFIG_SWSCALE_ALPHA && c->alpPixBuf) {
#if ARCH_X86_64
__asm__ volatile(
- YSCALEYUV2RGB(%%REGBP, %5)
- YSCALEYUV2RGB_YA(%%REGBP, %5, %6, %7)
+ YSCALEYUV2RGB(%%r8, %5)
+ YSCALEYUV2RGB_YA(%%r8, %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(%4, 8280(%5), %%REGBP, %%mm2, %%mm4, %%mm5, %%mm1, %%mm0, %%mm7, %%mm3, %%mm6)
+ WRITEBGR32(%4, 8280(%5), %%r8, %%mm2, %%mm4, %%mm5, %%mm1, %%mm0, %%mm7, %%mm3, %%mm6)
:: "c" (buf0), "d" (buf1), "S" (uvbuf0), "D" (uvbuf1), "r" (dest),
(Continue reading)
RSS Feed