comparison sparc/simple_idct_vis.c @ 8031:eebc7209c47f libavcodec

Convert asm keyword into __asm__. Neither the asm() nor the __asm__() keyword is part of the C99 standard, but while GCC accepts the former in C89 syntax, it is not accepted in C99 unless GNU extensions are turned on (with -fasm). The latter form is accepted in any syntax as an extension (without requiring further command-line options). Sun Studio C99 compiler also does not accept asm() while accepting __asm__(), albeit reporting warnings that it's not valid C99 syntax.
author flameeyes
date Thu, 16 Oct 2008 13:34:09 +0000
parents f7cbb7733146
children 197fe6f703a3
comparison
equal deleted inserted replaced
8030:a512ac8fa540 8031:eebc7209c47f
386 386
387 inline void ff_simple_idct_vis(DCTELEM *data) { 387 inline void ff_simple_idct_vis(DCTELEM *data) {
388 int out1, out2, out3, out4; 388 int out1, out2, out3, out4;
389 DECLARE_ALIGNED_8(int16_t, temp[8*8]); 389 DECLARE_ALIGNED_8(int16_t, temp[8*8]);
390 390
391 asm volatile( 391 __asm__ volatile(
392 INIT_IDCT 392 INIT_IDCT
393 393
394 #define ADDROUNDER 394 #define ADDROUNDER
395 395
396 // shift right 16-4=12 396 // shift right 16-4=12
426 426
427 void ff_simple_idct_put_vis(uint8_t *dest, int line_size, DCTELEM *data) { 427 void ff_simple_idct_put_vis(uint8_t *dest, int line_size, DCTELEM *data) {
428 int out1, out2, out3, out4, out5; 428 int out1, out2, out3, out4, out5;
429 int r1, r2, r3, r4, r5, r6, r7; 429 int r1, r2, r3, r4, r5, r6, r7;
430 430
431 asm volatile( 431 __asm__ volatile(
432 "wr %%g0, 0x8, %%gsr \n\t" 432 "wr %%g0, 0x8, %%gsr \n\t"
433 433
434 INIT_IDCT 434 INIT_IDCT
435 435
436 "add %3, %4, %5 \n\t" 436 "add %3, %4, %5 \n\t"
476 476
477 void ff_simple_idct_add_vis(uint8_t *dest, int line_size, DCTELEM *data) { 477 void ff_simple_idct_add_vis(uint8_t *dest, int line_size, DCTELEM *data) {
478 int out1, out2, out3, out4, out5, out6; 478 int out1, out2, out3, out4, out5, out6;
479 int r1, r2, r3, r4, r5, r6, r7; 479 int r1, r2, r3, r4, r5, r6, r7;
480 480
481 asm volatile( 481 __asm__ volatile(
482 "wr %%g0, 0x8, %%gsr \n\t" 482 "wr %%g0, 0x8, %%gsr \n\t"
483 483
484 INIT_IDCT 484 INIT_IDCT
485 485
486 "add %3, %4, %6 \n\t" 486 "add %3, %4, %6 \n\t"