Mercurial > libavcodec.hg
diff i386/dsputil_mmx_rnd.h @ 6755:33896780c612 libavcodec
Do not misuse long as the size of a register in x86.
typedef x86_reg as the appropriate size and use it instead.
author | ramiro |
---|---|
date | Thu, 08 May 2008 21:11:24 +0000 |
parents | 745d65881f5c |
children | eebc7209c47f |
line wrap: on
line diff
--- a/i386/dsputil_mmx_rnd.h Thu May 08 14:02:35 2008 +0000 +++ b/i386/dsputil_mmx_rnd.h Thu May 08 21:11:24 2008 +0000 @@ -57,7 +57,7 @@ "subl $4, %0 \n\t" "jnz 1b \n\t" :"+g"(h), "+S"(pixels), "+D"(block) - :"r"((long)line_size) + :"r"((x86_reg)line_size) :REG_a, "memory"); } @@ -107,7 +107,7 @@ #else :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst) #endif - :"S"((long)src1Stride), "D"((long)dstStride) + :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride) :"memory"); } @@ -153,7 +153,7 @@ "subl $4, %0 \n\t" "jnz 1b \n\t" :"+g"(h), "+S"(pixels), "+D"(block) - :"r"((long)line_size) + :"r"((x86_reg)line_size) :REG_a, "memory"); } @@ -202,7 +202,7 @@ #else :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst) #endif - :"S"((long)src1Stride), "D"((long)dstStride) + :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride) :"memory"); } @@ -231,7 +231,7 @@ "subl $4, %0 \n\t" "jnz 1b \n\t" :"+g"(h), "+S"(pixels), "+D"(block) - :"r"((long)line_size) + :"r"((x86_reg)line_size) :REG_a, "memory"); } @@ -297,7 +297,7 @@ "subl $2, %0 \n\t" "jnz 1b \n\t" :"+g"(h), "+S"(pixels) - :"D"(block), "r"((long)line_size) + :"D"(block), "r"((x86_reg)line_size) :REG_a, "memory"); } @@ -493,7 +493,7 @@ "subl $4, %0 \n\t" "jnz 1b \n\t" :"+g"(h), "+S"(pixels), "+D"(block) - :"r"((long)line_size) + :"r"((x86_reg)line_size) :REG_a, "memory"); } @@ -568,7 +568,7 @@ "subl $2, %0 \n\t" "jnz 1b \n\t" :"+g"(h), "+S"(pixels) - :"D"(block), "r"((long)line_size) + :"D"(block), "r"((x86_reg)line_size) :REG_a, "memory"); }