Revision be449fca libavcodec/i386/mpegvideo_mmx_template.c

View differences:

libavcodec/i386/mpegvideo_mmx_template.c
117 117
        /* note: block[0] is assumed to be positive */
118 118
        if (!s->h263_aic) {
119 119
#if 1
120
        asm volatile (
120
        __asm__ volatile (
121 121
                "mul %%ecx                \n\t"
122 122
                : "=d" (level), "=a"(dummy)
123 123
                : "a" ((block[0]>>2) + q), "c" (ff_inverse[q<<1])
124 124
        );
125 125
#else
126
        asm volatile (
126
        __asm__ volatile (
127 127
                "xorl %%edx, %%edx        \n\t"
128 128
                "divw %%cx                \n\t"
129 129
                "movzwl %%ax, %%eax       \n\t"
......
149 149

  
150 150
    if((s->out_format == FMT_H263 || s->out_format == FMT_H261) && s->mpeg_quant==0){
151 151

  
152
        asm volatile(
152
        __asm__ volatile(
153 153
            "movd %%"REG_a", "MM"3              \n\t" // last_non_zero_p1
154 154
            SPREADW(MM"3")
155 155
            "pxor "MM"7, "MM"7                  \n\t" // 0
......
182 182
              "r" (inv_zigzag_direct16+64), "r" (temp_block+64)
183 183
        );
184 184
    }else{ // FMT_H263
185
        asm volatile(
185
        __asm__ volatile(
186 186
            "movd %%"REG_a", "MM"3              \n\t" // last_non_zero_p1
187 187
            SPREADW(MM"3")
188 188
            "pxor "MM"7, "MM"7                  \n\t" // 0
......
214 214
              "r" (inv_zigzag_direct16+64), "r" (temp_block+64)
215 215
        );
216 216
    }
217
    asm volatile(
217
    __asm__ volatile(
218 218
        "movd %1, "MM"1                     \n\t" // max_qcoeff
219 219
        SPREADW(MM"1")
220 220
        "psubusw "MM"1, "MM"4               \n\t"

Also available in: Unified diff