diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-05-08 21:11:24 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-05-08 21:11:24 +0000 |
commit | 40d0e665d09aca5918c0b70b7045f32fae71f3eb (patch) | |
tree | 90a376cb30c157bbb7b682d62a5c776e4a8917f0 /libavcodec/i386/dsputil_h264_template_ssse3.c | |
parent | 35027eddf3113fa8a0e0c72aad12c9ac6a9a5228 (diff) | |
download | ffmpeg-40d0e665d09aca5918c0b70b7045f32fae71f3eb.tar.gz |
Do not misuse long as the size of a register in x86.
typedef x86_reg as the appropriate size and use it instead.
Originally committed as revision 13081 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputil_h264_template_ssse3.c')
-rw-r--r-- | libavcodec/i386/dsputil_h264_template_ssse3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/i386/dsputil_h264_template_ssse3.c b/libavcodec/i386/dsputil_h264_template_ssse3.c index 2ff685d76d..5345ccc1d8 100644 --- a/libavcodec/i386/dsputil_h264_template_ssse3.c +++ b/libavcodec/i386/dsputil_h264_template_ssse3.c @@ -72,7 +72,7 @@ static void H264_CHROMA_MC8_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1* "lea (%0,%3,2), %0 \n\t" "jg 1b \n\t" :"+r"(dst), "+r"(src), "+r"(h) - :"r"((long)stride) + :"r"((x86_reg)stride) ); } else { asm volatile( @@ -100,7 +100,7 @@ static void H264_CHROMA_MC8_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1* "lea (%0,%3,2), %0 \n\t" "jg 1b \n\t" :"+r"(dst), "+r"(src), "+r"(h) - :"r"((long)stride) + :"r"((x86_reg)stride) ); } return; @@ -154,7 +154,7 @@ static void H264_CHROMA_MC8_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1* "lea (%0,%3,2), %0 \n\t" "jg 1b \n\t" :"+r"(dst), "+r"(src), "+r"(h) - :"r"((long)stride) + :"r"((x86_reg)stride) ); } @@ -202,7 +202,7 @@ static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 4*/, uint8_t *src/*align 1* "lea (%0,%3,2), %0 \n\t" "jg 1b \n\t" :"+r"(dst), "+r"(src), "+r"(h) - :"r"((long)stride) + :"r"((x86_reg)stride) ); } |