Revision be449fca libavcodec/i386/cavsdsp_mmx.c

View differences:

libavcodec/i386/cavsdsp_mmx.c
35 35

  
36 36
static inline void cavs_idct8_1d(int16_t *block, uint64_t bias)
37 37
{
38
    asm volatile(
38
    __asm__ volatile(
39 39
        "movq 112(%0), %%mm4  \n\t" /* mm4 = src7 */
40 40
        "movq  16(%0), %%mm5  \n\t" /* mm5 = src1 */
41 41
        "movq  80(%0), %%mm2  \n\t" /* mm2 = src5 */
......
120 120

  
121 121
        cavs_idct8_1d(block+4*i, ff_pw_4);
122 122

  
123
        asm volatile(
123
        __asm__ volatile(
124 124
            "psraw     $3, %%mm7  \n\t"
125 125
            "psraw     $3, %%mm6  \n\t"
126 126
            "psraw     $3, %%mm5  \n\t"
......
150 150
    for(i=0; i<2; i++){
151 151
        cavs_idct8_1d(b2+4*i, ff_pw_64);
152 152

  
153
        asm volatile(
153
        __asm__ volatile(
154 154
            "psraw     $7, %%mm7  \n\t"
155 155
            "psraw     $7, %%mm6  \n\t"
156 156
            "psraw     $7, %%mm5  \n\t"
......
175 175
    add_pixels_clamped_mmx(b2, dst, stride);
176 176

  
177 177
    /* clear block */
178
    asm volatile(
178
    __asm__ volatile(
179 179
            "pxor %%mm7, %%mm7   \n\t"
180 180
            "movq %%mm7, (%0)    \n\t"
181 181
            "movq %%mm7, 8(%0)   \n\t"
......
275 275
    src -= 2*srcStride;\
276 276
    \
277 277
    while(w--){\
278
      asm volatile(\
278
      __asm__ volatile(\
279 279
        "pxor %%mm7, %%mm7          \n\t"\
280 280
        "movd (%0), %%mm0           \n\t"\
281 281
        "add %2, %0                 \n\t"\
......
306 306
        : "memory"\
307 307
     );\
308 308
     if(h==16){\
309
        asm volatile(\
309
        __asm__ volatile(\
310 310
            VOP(%%mm2, %%mm3, %%mm4, %%mm5, %%mm0, %%mm1, OP)\
311 311
            VOP(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, OP)\
312 312
            VOP(%%mm4, %%mm5, %%mm0, %%mm1, %%mm2, %%mm3, OP)\
......
328 328
#define QPEL_CAVS(OPNAME, OP, MMX)\
329 329
static void OPNAME ## cavs_qpel8_h_ ## MMX(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
330 330
    int h=8;\
331
    asm volatile(\
331
    __asm__ volatile(\
332 332
        "pxor %%mm7, %%mm7          \n\t"\
333 333
        "movq %5, %%mm6             \n\t"\
334 334
        "1:                         \n\t"\

Also available in: Unified diff