diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-01-07 13:00:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-01-07 13:00:38 +0000 |
commit | 5a508a98e918f647278ff9458d6d815f944eebde (patch) | |
tree | 2542d7a802f1bd085cdba339ee47661faa5921a4 /libavcodec/i386/dsputil_mmx_rnd.h | |
parent | 0b093b6fefb8712a57ae0b2dfdf2262cefbbba0e (diff) | |
download | ffmpeg-5a508a98e918f647278ff9458d6d815f944eebde.tar.gz |
PIC / ebx fix
Originally committed as revision 1408 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputil_mmx_rnd.h')
-rw-r--r-- | libavcodec/i386/dsputil_mmx_rnd.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libavcodec/i386/dsputil_mmx_rnd.h b/libavcodec/i386/dsputil_mmx_rnd.h index 2a2f669570..0ae1cd99de 100644 --- a/libavcodec/i386/dsputil_mmx_rnd.h +++ b/libavcodec/i386/dsputil_mmx_rnd.h @@ -85,7 +85,11 @@ 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" - :"+a"(h), "+b"(src1), "+c"(src2), "+d"(dst) +#ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used + :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst) +#else + :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst) +#endif :"S"(src1Stride), "D"(dstStride) :"memory"); } @@ -163,7 +167,11 @@ static void DEF(put, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, in "addl $32, %2 \n\t" "subl $2, %0 \n\t" "jnz 1b \n\t" - :"+a"(h), "+b"(src1), "+c"(src2), "+d"(dst) +#ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cant be used + :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst) +#else + :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst) +#endif :"S"(src1Stride), "D"(dstStride) :"memory"); } |