Revision 40d0e665 libavcodec/i386/dsputil_mmx_avg.h

View differences:

libavcodec/i386/dsputil_mmx_avg.h
55 55
        "subl $4, %0                    \n\t"
56 56
        "jnz 1b                         \n\t"
57 57
        :"+g"(h), "+S"(pixels), "+D"(block)
58
        :"r" ((long)line_size)
58
        :"r" ((x86_reg)line_size)
59 59
        :"%"REG_a, "memory");
60 60
}
61 61

  
......
105 105
#else
106 106
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
107 107
#endif
108
        :"S"((long)src1Stride), "D"((long)dstStride)
108
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
109 109
        :"memory");
110 110
}
111 111

  
......
152 152
#else
153 153
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
154 154
#endif
155
        :"S"((long)src1Stride), "D"((long)dstStride)
155
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
156 156
        :"memory");
157 157
//the following should be used, though better not with gcc ...
158 158
/*        :"+g"(h), "+r"(src1), "+r"(src2), "+r"(dst)
......
222 222
#else
223 223
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
224 224
#endif
225
        :"S"((long)src1Stride), "D"((long)dstStride)
225
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
226 226
        :"memory");
227 227
//the following should be used, though better not with gcc ...
228 228
/*        :"+g"(h), "+r"(src1), "+r"(src2), "+r"(dst)
......
277 277
#else
278 278
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
279 279
#endif
280
        :"S"((long)src1Stride), "D"((long)dstStride)
280
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
281 281
        :"memory");
282 282
}
283 283

  
......
329 329
#else
330 330
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
331 331
#endif
332
        :"S"((long)src1Stride), "D"((long)dstStride)
332
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
333 333
        :"memory");
334 334
//the following should be used, though better not with gcc ...
335 335
/*        :"+g"(h), "+r"(src1), "+r"(src2), "+r"(dst)
......
373 373
        "subl $4, %0                    \n\t"
374 374
        "jnz 1b                         \n\t"
375 375
        :"+g"(h), "+S"(pixels), "+D"(block)
376
        :"r" ((long)line_size)
376
        :"r" ((x86_reg)line_size)
377 377
        :"%"REG_a, "memory");
378 378
}
379 379

  
......
417 417
#else
418 418
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
419 419
#endif
420
        :"S"((long)src1Stride), "D"((long)dstStride)
420
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
421 421
        :"memory");
422 422
//the following should be used, though better not with gcc ...
423 423
/*        :"+g"(h), "+r"(src1), "+r"(src2), "+r"(dst)
......
471 471
#else
472 472
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
473 473
#endif
474
        :"S"((long)src1Stride), "D"((long)dstStride)
474
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
475 475
        :"memory");
476 476
//the following should be used, though better not with gcc ...
477 477
/*        :"+g"(h), "+r"(src1), "+r"(src2), "+r"(dst)
......
544 544
#else
545 545
        :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
546 546
#endif
547
        :"S"((long)src1Stride), "D"((long)dstStride)
547
        :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
548 548
        :"memory");
549 549
//the following should be used, though better not with gcc ...
550 550
/*        :"+g"(h), "+r"(src1), "+r"(src2), "+r"(dst)
......
586 586
        "subl $4, %0                    \n\t"
587 587
        "jnz 1b                         \n\t"
588 588
        :"+g"(h), "+S"(pixels), "+D"(block)
589
        :"r" ((long)line_size)
589
        :"r" ((x86_reg)line_size)
590 590
        :"%"REG_a, "memory");
591 591
}
592 592

  
......
616 616
        "subl $4, %0                    \n\t"
617 617
        "jnz 1b                         \n\t"
618 618
        :"+g"(h), "+S"(pixels), "+D" (block)
619
        :"r" ((long)line_size)
619
        :"r" ((x86_reg)line_size)
620 620
        :"%"REG_a, "memory");
621 621
}
622 622

  
......
650 650
        "subl $4, %0                    \n\t"
651 651
        "jnz 1b                         \n\t"
652 652
        :"+g"(h), "+S"(pixels), "+D" (block)
653
        :"r" ((long)line_size)
653
        :"r" ((x86_reg)line_size)
654 654
        :"%"REG_a, "memory");
655 655
}
656 656

  
......
678 678
        "subl $4, %0                    \n\t"
679 679
        "jnz 1b                         \n\t"
680 680
        :"+g"(h), "+S"(pixels), "+D"(block)
681
        :"r" ((long)line_size)
681
        :"r" ((x86_reg)line_size)
682 682
        :"%"REG_a, "memory");
683 683
}
684 684

  
......
710 710
        "subl $4, %0                    \n\t"
711 711
        "jnz 1b                         \n\t"
712 712
        :"+g"(h), "+S"(pixels), "+D"(block)
713
        :"r" ((long)line_size)
713
        :"r" ((x86_reg)line_size)
714 714
        :"%"REG_a, "memory");
715 715
}
716 716

  
......
748 748
        "subl $4, %0                    \n\t"
749 749
        "jnz 1b                         \n\t"
750 750
        :"+g"(h), "+S"(pixels), "+D"(block)
751
        :"r" ((long)line_size)
751
        :"r" ((x86_reg)line_size)
752 752
        :"%"REG_a, "memory");
753 753
}
754 754

  
......
791 791
        "subl $4, %0                    \n\t"
792 792
        "jnz 1b                         \n\t"
793 793
        :"+g"(h), "+S"(pixels), "+D"(block)
794
        :"r" ((long)line_size)
794
        :"r" ((x86_reg)line_size)
795 795
        :"%"REG_a,  "memory");
796 796
}
797 797

  
......
812 812
            "movd %%mm2, (%1, %2, 2)        \n\t"
813 813
            "movd %%mm3, (%1, %3)           \n\t"
814 814
            ::"S"(pixels), "D"(block),
815
             "r" ((long)line_size), "r"(3L*line_size)
815
             "r" ((x86_reg)line_size), "r"((x86_reg)3L*line_size)
816 816
            :"memory");
817 817
        block += 4*line_size;
818 818
        pixels += 4*line_size;
......
868 868
        "decl  %0              \n\t"\
869 869
        "jnz   1b              \n\t"\
870 870
        :"+g"(h), "+r"(src)\
871
        :"r"((long)off1), "r"((long)off2),\
872
         "r"((long)(dst-src)), "r"((long)stride)\
871
        :"r"((x86_reg)off1), "r"((x86_reg)off2),\
872
         "r"((x86_reg)(dst-src)), "r"((x86_reg)stride)\
873 873
        :"memory"\
874 874
    );\
875 875
}\
......
885 885
        "decl  %0              \n\t"\
886 886
        "jnz   1b              \n\t"\
887 887
        :"+g"(h), "+r"(src)\
888
        :"r"((long)off1), "r"((long)off2),\
889
         "r"((long)(dst-src)), "r"((long)stride)\
888
        :"r"((x86_reg)off1), "r"((x86_reg)off2),\
889
         "r"((x86_reg)(dst-src)), "r"((x86_reg)stride)\
890 890
        :"memory"\
891 891
    );\
892 892
}

Also available in: Unified diff