Revision 40d0e665 libavcodec/i386/motion_est_mmx.c

View differences:

libavcodec/i386/motion_est_mmx.c
34 34

  
35 35
static inline void sad8_1_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h)
36 36
{
37
    long len= -(stride*h);
37
    x86_reg len= -(stride*h);
38 38
    asm volatile(
39 39
        ASMALIGN(4)
40 40
        "1:                             \n\t"
......
64 64
        "add %3, %%"REG_a"              \n\t"
65 65
        " js 1b                         \n\t"
66 66
        : "+a" (len)
67
        : "r" (blk1 - len), "r" (blk2 - len), "r" ((long)stride)
67
        : "r" (blk1 - len), "r" (blk2 - len), "r" ((x86_reg)stride)
68 68
    );
69 69
}
70 70

  
......
84 84
        "sub $2, %0                     \n\t"
85 85
        " jg 1b                         \n\t"
86 86
        : "+r" (h), "+r" (blk1), "+r" (blk2)
87
        : "r" ((long)stride)
87
        : "r" ((x86_reg)stride)
88 88
    );
89 89
}
90 90

  
......
106 106
        "sub $2, %0                     \n\t"
107 107
        " jg 1b                         \n\t"
108 108
        : "+r" (h), "+r" (blk1), "+r" (blk2)
109
        : "r" ((long)stride)
109
        : "r" ((x86_reg)stride)
110 110
    );
111 111
    asm volatile(
112 112
        "movhlps %%xmm6, %%xmm0         \n\t"
......
135 135
        "sub $2, %0                     \n\t"
136 136
        " jg 1b                         \n\t"
137 137
        : "+r" (h), "+r" (blk1), "+r" (blk2)
138
        : "r" ((long)stride)
138
        : "r" ((x86_reg)stride)
139 139
    );
140 140
}
141 141

  
......
160 160
        "sub $2, %0                     \n\t"
161 161
        " jg 1b                         \n\t"
162 162
        : "+r" (h), "+r" (blk1), "+r" (blk2)
163
        : "r" ((long)stride)
163
        : "r" ((x86_reg)stride)
164 164
    );
165 165
}
166 166

  
......
190 190
        "sub $2, %0                     \n\t"
191 191
        " jg 1b                         \n\t"
192 192
        : "+r" (h), "+r" (blk1), "+r" (blk2)
193
        : "r" ((long)stride)
193
        : "r" ((x86_reg)stride)
194 194
    );
195 195
}
196 196

  
197 197
static inline void sad8_2_mmx(uint8_t *blk1a, uint8_t *blk1b, uint8_t *blk2, int stride, int h)
198 198
{
199
    long len= -(stride*h);
199
    x86_reg len= -(stride*h);
200 200
    asm volatile(
201 201
        ASMALIGN(4)
202 202
        "1:                             \n\t"
......
228 228
        "add %4, %%"REG_a"              \n\t"
229 229
        " js 1b                         \n\t"
230 230
        : "+a" (len)
231
        : "r" (blk1a - len), "r" (blk1b -len), "r" (blk2 - len), "r" ((long)stride)
231
        : "r" (blk1a - len), "r" (blk1b -len), "r" (blk2 - len), "r" ((x86_reg)stride)
232 232
    );
233 233
}
234 234

  
235 235
static inline void sad8_4_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h)
236 236
{
237
    long len= -(stride*h);
237
    x86_reg len= -(stride*h);
238 238
    asm volatile(
239 239
        "movq (%1, %%"REG_a"), %%mm0    \n\t"
240 240
        "movq 1(%1, %%"REG_a"), %%mm2   \n\t"
......
281 281
        "add %4, %%"REG_a"              \n\t"
282 282
        " js 1b                         \n\t"
283 283
        : "+a" (len)
284
        : "r" (blk1 - len), "r" (blk1 -len + stride), "r" (blk2 - len), "r" ((long)stride)
284
        : "r" (blk1 - len), "r" (blk1 -len + stride), "r" (blk2 - len), "r" ((x86_reg)stride)
285 285
    );
286 286
}
287 287

  

Also available in: Unified diff