Revision 40d0e665 libavcodec/i386/cavsdsp_mmx.c

View differences:

libavcodec/i386/cavsdsp_mmx.c
25 25
#include "dsputil.h"
26 26
#include "dsputil_mmx.h"
27 27
#include "common.h"
28
#include "x86_cpu.h"
28 29

  
29 30
/*****************************************************************************
30 31
 *
......
301 302
        VOP(%%mm1, %%mm2, %%mm3, %%mm4, %%mm5, %%mm0, OP)\
302 303
        \
303 304
        : "+a"(src), "+c"(dst)\
304
        : "S"((long)srcStride), "D"((long)dstStride), "m"(ADD), "m"(MUL1), "m"(MUL2)\
305
        : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "m"(ADD), "m"(MUL1), "m"(MUL2)\
305 306
        : "memory"\
306 307
     );\
307 308
     if(h==16){\
......
316 317
            VOP(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, OP)\
317 318
            \
318 319
           : "+a"(src), "+c"(dst)\
319
           : "S"((long)srcStride), "D"((long)dstStride), "m"(ADD),  "m"(MUL1), "m"(MUL2)\
320
           : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "m"(ADD),  "m"(MUL1), "m"(MUL2)\
320 321
           : "memory"\
321 322
        );\
322 323
     }\
......
367 368
        "decl %2                    \n\t"\
368 369
        " jnz 1b                    \n\t"\
369 370
        : "+a"(src), "+c"(dst), "+m"(h)\
370
        : "d"((long)srcStride), "S"((long)dstStride), "m"(ff_pw_5), "m"(ff_pw_4)\
371
        : "d"((x86_reg)srcStride), "S"((x86_reg)dstStride), "m"(ff_pw_5), "m"(ff_pw_4)\
371 372
        : "memory"\
372 373
    );\
373 374
}\

Also available in: Unified diff