comparison bfin/mpegvideo_bfin.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 cf4d575b1982
comparison
equal deleted inserted replaced
8030:a512ac8fa540 8031:eebc7209c47f
86 /* max |= level; */ 86 /* max |= level; */
87 /* level = level * sign; */ 87 /* level = level * sign; */
88 /* block[i] = level; */ 88 /* block[i] = level; */
89 /* } */ 89 /* } */
90 90
91 asm volatile 91 __asm__ volatile
92 ("i2=%1;\n\t" 92 ("i2=%1;\n\t"
93 "r1=[%1++]; \n\t" 93 "r1=[%1++]; \n\t"
94 "r0=r1>>>15 (v); \n\t" 94 "r0=r1>>>15 (v); \n\t"
95 "lsetup (0f,1f) lc0=%3; \n\t" 95 "lsetup (0f,1f) lc0=%3; \n\t"
96 "0: r0=r0|%4; \n\t" 96 "0: r0=r0|%4; \n\t"
112 EPROF(); 112 EPROF();
113 113
114 114
115 PROF("zzscan",5); 115 PROF("zzscan",5);
116 116
117 asm volatile 117 __asm__ volatile
118 ("r0=b[%1--] (x); \n\t" 118 ("r0=b[%1--] (x); \n\t"
119 "lsetup (0f,1f) lc0=%3; \n\t" /* for(i=63; i>=start_i; i--) { */ 119 "lsetup (0f,1f) lc0=%3; \n\t" /* for(i=63; i>=start_i; i--) { */
120 "0: p0=r0; \n\t" /* j = scantable[i]; */ 120 "0: p0=r0; \n\t" /* j = scantable[i]; */
121 " p0=%2+(p0<<1); \n\t" /* if (block[j]) { */ 121 " p0=%2+(p0<<1); \n\t" /* if (block[j]) { */
122 " r0=w[p0]; \n\t" /* last_non_zero = i; */ 122 " r0=w[p0]; \n\t" /* last_non_zero = i; */