Revision be449fca libavcodec/ps2/idct_mmi.c

View differences:

libavcodec/ps2/idct_mmi.c
257 257
        pmaxh($2, $0, $2);      \
258 258
        ppacb($0, $2, $2);      \
259 259
        sd3(2, 0, 4);           \
260
        asm volatile ("add $4, $5, $4");
260
        __asm__ volatile ("add $4, $5, $4");
261 261

  
262 262
#define DCT_8_INV_COL8_PUT() \
263 263
        PUT($16);        \
......
277 277
        pmaxh($2, $0, $2);   \
278 278
        ppacb($0, $2, $2);   \
279 279
        sd3(2, 0, 4); \
280
        asm volatile ("add $4, $5, $4");
280
        __asm__ volatile ("add $4, $5, $4");
281 281

  
282 282
/*fixme: schedule*/
283 283
#define DCT_8_INV_COL8_ADD() \
......
294 294
void ff_mmi_idct(int16_t * block)
295 295
{
296 296
        /* $4 = block */
297
        asm volatile("la $24, %0"::"m"(consttable[0]));
297
        __asm__ volatile("la $24, %0"::"m"(consttable[0]));
298 298
        lq($24, ROUNDER_0, $8);
299 299
        lq($24, ROUNDER_1, $7);
300 300
        DCT_8_INV_ROW1($4, 0, TAB_i_04, $8, $8);
......
309 309
        DCT_8_INV_COL8_STORE($4);
310 310

  
311 311
        //let savedtemp regs be saved
312
        asm volatile(" ":::"$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23");
312
        __asm__ volatile(" ":::"$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23");
313 313
}
314 314

  
315 315

  
316 316
void ff_mmi_idct_put(uint8_t *dest, int line_size, DCTELEM *block)
317 317
{
318 318
        /* $4 = dest, $5 = line_size, $6 = block */
319
        asm volatile("la $24, %0"::"m"(consttable[0]));
319
        __asm__ volatile("la $24, %0"::"m"(consttable[0]));
320 320
        lq($24, ROUNDER_0, $8);
321 321
        lq($24, ROUNDER_1, $7);
322 322
        DCT_8_INV_ROW1($6, 0, TAB_i_04, $8, $8);
......
333 333
        DCT_8_INV_COL8_PUT();
334 334

  
335 335
        //let savedtemp regs be saved
336
        asm volatile(" ":::"$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23");
336
        __asm__ volatile(" ":::"$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23");
337 337
}
338 338

  
339 339

  
340 340
void ff_mmi_idct_add(uint8_t *dest, int line_size, DCTELEM *block)
341 341
{
342 342
        /* $4 = dest, $5 = line_size, $6 = block */
343
        asm volatile("la $24, %0"::"m"(consttable[0]));
343
        __asm__ volatile("la $24, %0"::"m"(consttable[0]));
344 344
        lq($24, ROUNDER_0, $8);
345 345
        lq($24, ROUNDER_1, $7);
346 346
        DCT_8_INV_ROW1($6, 0, TAB_i_04, $8, $8);
......
357 357
        DCT_8_INV_COL8_ADD();
358 358

  
359 359
        //let savedtemp regs be saved
360
        asm volatile(" ":::"$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23");
360
        __asm__ volatile(" ":::"$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23");
361 361
}
362 362

  

Also available in: Unified diff