mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
more gcc bug workarounds
Originally committed as revision 1407 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3df6fa7777
commit
0b093b6fef
@ -790,8 +790,9 @@ void OPNAME ## mpeg4_qpel16_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstSt
|
||||
"addl %4, %1 \n\t"\
|
||||
"decl %2 \n\t"\
|
||||
" jnz 1b \n\t"\
|
||||
: "+r"(src), "+r"(dst), "+g"(h)\
|
||||
: "r"(srcStride), "r"(dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(temp), "m"(ROUNDER)\
|
||||
: "+a"(src), "+b"(dst), "+c"(h)\
|
||||
: "d"(srcStride), "S"(dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(temp), "m"(ROUNDER)\
|
||||
: "memory"\
|
||||
);\
|
||||
}\
|
||||
\
|
||||
@ -835,6 +836,7 @@ static void OPNAME ## mpeg4_qpel16_h_lowpass_3dnow(uint8_t *dst, uint8_t *src, i
|
||||
"packuswb %%mm1, %%mm0 \n\t"\
|
||||
OP_3DNOW(%%mm0, 8(%1), %%mm1, q)\
|
||||
:: "r"(temp), "r"(dst), "m"(ROUNDER)\
|
||||
: "memory"\
|
||||
);\
|
||||
dst+=dstStride;\
|
||||
src+=srcStride;\
|
||||
@ -901,8 +903,9 @@ void OPNAME ## mpeg4_qpel8_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstStr
|
||||
"addl %4, %1 \n\t"\
|
||||
"decl %2 \n\t"\
|
||||
" jnz 1b \n\t"\
|
||||
: "+r"(src), "+r"(dst), "+r"(h)\
|
||||
: "r"(srcStride), "r"(dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(temp), "m"(ROUNDER)\
|
||||
: "+a"(src), "+b"(dst), "+c"(h)\
|
||||
: "S"(srcStride), "D"(dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(temp), "m"(ROUNDER)\
|
||||
: "memory"\
|
||||
);\
|
||||
}\
|
||||
\
|
||||
@ -930,6 +933,7 @@ static void OPNAME ## mpeg4_qpel8_h_lowpass_3dnow(uint8_t *dst, uint8_t *src, in
|
||||
"packuswb %%mm1, %%mm0 \n\t"\
|
||||
OP_3DNOW(%%mm0, (%1), %%mm1, q)\
|
||||
:: "r"(temp), "r"(dst), "m"(ROUNDER)\
|
||||
:"memory"\
|
||||
);\
|
||||
dst+=dstStride;\
|
||||
src+=srcStride;\
|
||||
@ -965,6 +969,7 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
|
||||
" jnz 1b \n\t"\
|
||||
: "+r" (src), "+r" (temp_ptr), "+r"(count)\
|
||||
: "r" (srcStride), "r"(2*8*17), "r"(3*8*17)\
|
||||
: "memory"\
|
||||
);\
|
||||
\
|
||||
temp_ptr= temp;\
|
||||
@ -1011,6 +1016,7 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
|
||||
\
|
||||
: "+r"(temp_ptr), "+r"(dst), "+r"(count)\
|
||||
: "r"(dstStride), "r"(2*dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(ROUNDER), "g"(4-14*dstStride)\
|
||||
:"memory"\
|
||||
);\
|
||||
}\
|
||||
\
|
||||
@ -1035,6 +1041,7 @@ void OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src, int dst
|
||||
" jnz 1b \n\t"\
|
||||
: "+r" (src), "+r" (temp_ptr), "+r"(count)\
|
||||
: "r" (srcStride)\
|
||||
: "memory"\
|
||||
);\
|
||||
\
|
||||
temp_ptr= temp;\
|
||||
@ -1069,7 +1076,8 @@ void OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src, int dst
|
||||
\
|
||||
: "+r"(temp_ptr), "+r"(dst), "+g"(count)\
|
||||
: "r"(dstStride), "r"(2*dstStride), /*"m"(ff_pw_20), "m"(ff_pw_3),*/ "m"(ROUNDER), "g"(4-6*dstStride)\
|
||||
);\
|
||||
: "memory"\
|
||||
);\
|
||||
}\
|
||||
\
|
||||
static void OPNAME ## qpel8_mc00_ ## MMX (UINT8 *dst, UINT8 *src, int stride){\
|
||||
|
@ -85,8 +85,8 @@ static void DEF(put, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int
|
||||
"addl %5, %3 \n\t"
|
||||
"subl $4, %0 \n\t"
|
||||
"jnz 1b \n\t"
|
||||
:"+g"(h), "+r"(src1), "+r"(src2), "+r"(dst)
|
||||
:"r"(src1Stride), "r"(dstStride)
|
||||
:"+a"(h), "+b"(src1), "+c"(src2), "+d"(dst)
|
||||
:"S"(src1Stride), "D"(dstStride)
|
||||
:"memory");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user