Mercurial > libavcodec.hg
diff i386/cavsdsp_mmx.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 | 899a12113af5 |
line wrap: on
line diff
--- a/i386/cavsdsp_mmx.c Wed Oct 15 08:01:54 2008 +0000 +++ b/i386/cavsdsp_mmx.c Thu Oct 16 13:34:09 2008 +0000 @@ -35,7 +35,7 @@ static inline void cavs_idct8_1d(int16_t *block, uint64_t bias) { - asm volatile( + __asm__ volatile( "movq 112(%0), %%mm4 \n\t" /* mm4 = src7 */ "movq 16(%0), %%mm5 \n\t" /* mm5 = src1 */ "movq 80(%0), %%mm2 \n\t" /* mm2 = src5 */ @@ -120,7 +120,7 @@ cavs_idct8_1d(block+4*i, ff_pw_4); - asm volatile( + __asm__ volatile( "psraw $3, %%mm7 \n\t" "psraw $3, %%mm6 \n\t" "psraw $3, %%mm5 \n\t" @@ -150,7 +150,7 @@ for(i=0; i<2; i++){ cavs_idct8_1d(b2+4*i, ff_pw_64); - asm volatile( + __asm__ volatile( "psraw $7, %%mm7 \n\t" "psraw $7, %%mm6 \n\t" "psraw $7, %%mm5 \n\t" @@ -175,7 +175,7 @@ add_pixels_clamped_mmx(b2, dst, stride); /* clear block */ - asm volatile( + __asm__ volatile( "pxor %%mm7, %%mm7 \n\t" "movq %%mm7, (%0) \n\t" "movq %%mm7, 8(%0) \n\t" @@ -275,7 +275,7 @@ src -= 2*srcStride;\ \ while(w--){\ - asm volatile(\ + __asm__ volatile(\ "pxor %%mm7, %%mm7 \n\t"\ "movd (%0), %%mm0 \n\t"\ "add %2, %0 \n\t"\ @@ -306,7 +306,7 @@ : "memory"\ );\ if(h==16){\ - asm volatile(\ + __asm__ volatile(\ VOP(%%mm2, %%mm3, %%mm4, %%mm5, %%mm0, %%mm1, OP)\ VOP(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, OP)\ VOP(%%mm4, %%mm5, %%mm0, %%mm1, %%mm2, %%mm3, OP)\ @@ -328,7 +328,7 @@ #define QPEL_CAVS(OPNAME, OP, MMX)\ static void OPNAME ## cavs_qpel8_h_ ## MMX(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\ int h=8;\ - asm volatile(\ + __asm__ volatile(\ "pxor %%mm7, %%mm7 \n\t"\ "movq %5, %%mm6 \n\t"\ "1: \n\t"\