Commit 992a46d9 authored by gpoirier's avatar gpoirier

GCC-4 fix for AMD-64

Warning: high cola-affinity here)


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@15750 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 64e3d8c4
...@@ -765,14 +765,14 @@ static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t * ...@@ -765,14 +765,14 @@ static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t *
asm volatile( asm volatile(
YSCALEYUV2YV12X(0, CHR_MMX_FILTER_OFFSET) YSCALEYUV2YV12X(0, CHR_MMX_FILTER_OFFSET)
:: "r" (&c->redDither), :: "r" (&c->redDither),
"r" (uDest), "m" ((long)chrDstW) "r" (uDest), "p" ((long)chrDstW)
: "%"REG_a, "%"REG_d, "%"REG_S : "%"REG_a, "%"REG_d, "%"REG_S
); );
asm volatile( asm volatile(
YSCALEYUV2YV12X(4096, CHR_MMX_FILTER_OFFSET) YSCALEYUV2YV12X(4096, CHR_MMX_FILTER_OFFSET)
:: "r" (&c->redDither), :: "r" (&c->redDither),
"r" (vDest), "m" ((long)chrDstW) "r" (vDest), "p" ((long)chrDstW)
: "%"REG_a, "%"REG_d, "%"REG_S : "%"REG_a, "%"REG_d, "%"REG_S
); );
} }
...@@ -780,7 +780,7 @@ static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t * ...@@ -780,7 +780,7 @@ static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t *
asm volatile( asm volatile(
YSCALEYUV2YV12X(0, LUM_MMX_FILTER_OFFSET) YSCALEYUV2YV12X(0, LUM_MMX_FILTER_OFFSET)
:: "r" (&c->redDither), :: "r" (&c->redDither),
"r" (dest), "m" ((long)dstW) "r" (dest), "p" ((long)dstW)
: "%"REG_a, "%"REG_d, "%"REG_S : "%"REG_a, "%"REG_d, "%"REG_S
); );
#else #else
...@@ -2547,7 +2547,7 @@ FUNNY_UV_CODE ...@@ -2547,7 +2547,7 @@ FUNNY_UV_CODE
"cmp %2, %%"REG_a" \n\t" "cmp %2, %%"REG_a" \n\t"
" jb 1b \n\t" " jb 1b \n\t"
:: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask), :: "m" (src1), "m" (dst), "p" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
"r" (src2) "r" (src2)
: "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi" : "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi"
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment