Revision be449fca libavcodec/i386/dsputil_mmx_rnd.h

View differences:

libavcodec/i386/dsputil_mmx_rnd.h
32 32
static void DEF(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, int line_size, int h)
33 33
{
34 34
    MOVQ_BFE(mm6);
35
    asm volatile(
35
    __asm__ volatile(
36 36
        "lea    (%3, %3), %%"REG_a"     \n\t"
37 37
        ASMALIGN(3)
38 38
        "1:                             \n\t"
......
64 64
static void av_unused DEF(put, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
65 65
{
66 66
    MOVQ_BFE(mm6);
67
    asm volatile(
67
    __asm__ volatile(
68 68
        "testl $1, %0                   \n\t"
69 69
        " jz 1f                         \n\t"
70 70
        "movq   (%1), %%mm0             \n\t"
......
114 114
static void DEF(put, pixels16_x2)(uint8_t *block, const uint8_t *pixels, int line_size, int h)
115 115
{
116 116
    MOVQ_BFE(mm6);
117
    asm volatile(
117
    __asm__ volatile(
118 118
        "lea        (%3, %3), %%"REG_a" \n\t"
119 119
        ASMALIGN(3)
120 120
        "1:                             \n\t"
......
160 160
static void av_unused DEF(put, pixels16_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int dstStride, int src1Stride, int h)
161 161
{
162 162
    MOVQ_BFE(mm6);
163
    asm volatile(
163
    __asm__ volatile(
164 164
        "testl $1, %0                   \n\t"
165 165
        " jz 1f                         \n\t"
166 166
        "movq   (%1), %%mm0             \n\t"
......
209 209
static void DEF(put, pixels8_y2)(uint8_t *block, const uint8_t *pixels, int line_size, int h)
210 210
{
211 211
    MOVQ_BFE(mm6);
212
    asm volatile(
212
    __asm__ volatile(
213 213
        "lea (%3, %3), %%"REG_a"        \n\t"
214 214
        "movq (%1), %%mm0               \n\t"
215 215
        ASMALIGN(3)
......
239 239
{
240 240
    MOVQ_ZERO(mm7);
241 241
    SET_RND(mm6); // =2 for rnd  and  =1 for no_rnd version
242
    asm volatile(
242
    __asm__ volatile(
243 243
        "movq   (%1), %%mm0             \n\t"
244 244
        "movq   1(%1), %%mm4            \n\t"
245 245
        "movq   %%mm0, %%mm1            \n\t"
......
307 307
    MOVQ_BFE(mm6);
308 308
    JUMPALIGN();
309 309
    do {
310
        asm volatile(
310
        __asm__ volatile(
311 311
             "movd  %0, %%mm0           \n\t"
312 312
             "movd  %1, %%mm1           \n\t"
313 313
             PAVGB(%%mm0, %%mm1, %%mm2, %%mm6)
......
327 327
    MOVQ_BFE(mm6);
328 328
    JUMPALIGN();
329 329
    do {
330
        asm volatile(
330
        __asm__ volatile(
331 331
             "movq  %0, %%mm0           \n\t"
332 332
             "movq  %1, %%mm1           \n\t"
333 333
             PAVGB(%%mm0, %%mm1, %%mm2, %%mm6)
......
346 346
    MOVQ_BFE(mm6);
347 347
    JUMPALIGN();
348 348
    do {
349
        asm volatile(
349
        __asm__ volatile(
350 350
             "movq  %0, %%mm0           \n\t"
351 351
             "movq  %1, %%mm1           \n\t"
352 352
             PAVGB(%%mm0, %%mm1, %%mm2, %%mm6)
......
369 369
    MOVQ_BFE(mm6);
370 370
    JUMPALIGN();
371 371
    do {
372
        asm volatile(
372
        __asm__ volatile(
373 373
            "movq  %1, %%mm0            \n\t"
374 374
            "movq  1%1, %%mm1           \n\t"
375 375
            "movq  %0, %%mm3            \n\t"
......
389 389
    MOVQ_BFE(mm6);
390 390
    JUMPALIGN();
391 391
    do {
392
        asm volatile(
392
        __asm__ volatile(
393 393
            "movq  %1, %%mm0            \n\t"
394 394
            "movq  %2, %%mm1            \n\t"
395 395
            "movq  %0, %%mm3            \n\t"
......
410 410
    MOVQ_BFE(mm6);
411 411
    JUMPALIGN();
412 412
    do {
413
        asm volatile(
413
        __asm__ volatile(
414 414
            "movq  %1, %%mm0            \n\t"
415 415
            "movq  1%1, %%mm1           \n\t"
416 416
            "movq  %0, %%mm3            \n\t"
......
436 436
    MOVQ_BFE(mm6);
437 437
    JUMPALIGN();
438 438
    do {
439
        asm volatile(
439
        __asm__ volatile(
440 440
            "movq  %1, %%mm0            \n\t"
441 441
            "movq  %2, %%mm1            \n\t"
442 442
            "movq  %0, %%mm3            \n\t"
......
461 461
static void DEF(avg, pixels8_y2)(uint8_t *block, const uint8_t *pixels, int line_size, int h)
462 462
{
463 463
    MOVQ_BFE(mm6);
464
    asm volatile(
464
    __asm__ volatile(
465 465
        "lea    (%3, %3), %%"REG_a"     \n\t"
466 466
        "movq   (%1), %%mm0             \n\t"
467 467
        ASMALIGN(3)
......
502 502
{
503 503
    MOVQ_ZERO(mm7);
504 504
    SET_RND(mm6); // =2 for rnd  and  =1 for no_rnd version
505
    asm volatile(
505
    __asm__ volatile(
506 506
        "movq   (%1), %%mm0             \n\t"
507 507
        "movq   1(%1), %%mm4            \n\t"
508 508
        "movq   %%mm0, %%mm1            \n\t"

Also available in: Unified diff