Revision be449fca libavcodec/i386/mpegvideo_mmx.c

View differences:

libavcodec/i386/mpegvideo_mmx.c
55 55
    else
56 56
        nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ];
57 57
//printf("%d %d  ", qmul, qadd);
58
asm volatile(
58
__asm__ volatile(
59 59
                "movd %1, %%mm6                 \n\t" //qmul
60 60
                "packssdw %%mm6, %%mm6          \n\t"
61 61
                "packssdw %%mm6, %%mm6          \n\t"
......
118 118

  
119 119
    nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ];
120 120
//printf("%d %d  ", qmul, qadd);
121
asm volatile(
121
__asm__ volatile(
122 122
                "movd %1, %%mm6                 \n\t" //qmul
123 123
                "packssdw %%mm6, %%mm6          \n\t"
124 124
                "packssdw %%mm6, %%mm6          \n\t"
......
214 214
        block0 = block[0] * s->c_dc_scale;
215 215
    /* XXX: only mpeg1 */
216 216
    quant_matrix = s->intra_matrix;
217
asm volatile(
217
__asm__ volatile(
218 218
                "pcmpeqw %%mm7, %%mm7           \n\t"
219 219
                "psrlw $15, %%mm7               \n\t"
220 220
                "movd %2, %%mm6                 \n\t"
......
277 277
    nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ]+1;
278 278

  
279 279
        quant_matrix = s->inter_matrix;
280
asm volatile(
280
__asm__ volatile(
281 281
                "pcmpeqw %%mm7, %%mm7           \n\t"
282 282
                "psrlw $15, %%mm7               \n\t"
283 283
                "movd %2, %%mm6                 \n\t"
......
349 349
    else
350 350
        block0 = block[0] * s->c_dc_scale;
351 351
    quant_matrix = s->intra_matrix;
352
asm volatile(
352
__asm__ volatile(
353 353
                "pcmpeqw %%mm7, %%mm7           \n\t"
354 354
                "psrlw $15, %%mm7               \n\t"
355 355
                "movd %2, %%mm6                 \n\t"
......
410 410
    else nCoeffs= s->intra_scantable.raster_end[ s->block_last_index[n] ];
411 411

  
412 412
        quant_matrix = s->inter_matrix;
413
asm volatile(
413
__asm__ volatile(
414 414
                "pcmpeqw %%mm7, %%mm7           \n\t"
415 415
                "psrlq $48, %%mm7               \n\t"
416 416
                "movd %2, %%mm6                 \n\t"
......
482 482

  
483 483
    s->dct_count[intra]++;
484 484

  
485
    asm volatile(
485
    __asm__ volatile(
486 486
        "pxor %%mm7, %%mm7                      \n\t"
487 487
        "1:                                     \n\t"
488 488
        "pxor %%mm0, %%mm0                      \n\t"
......
536 536

  
537 537
    s->dct_count[intra]++;
538 538

  
539
    asm volatile(
539
    __asm__ volatile(
540 540
        "pxor %%xmm7, %%xmm7                    \n\t"
541 541
        "1:                                     \n\t"
542 542
        "pxor %%xmm0, %%xmm0                    \n\t"

Also available in: Unified diff