[MPlayer-cvslog] r26456 - trunk/libswscale/yuv2rgb_template.c

diego subversion at mplayerhq.hu
Thu Apr 17 23:54:43 CEST 2008


Author: diego
Date: Thu Apr 17 23:54:43 2008
New Revision: 26456

Log:
cosmetics: __asm__ __volatile__ --> asm volatile


Modified:
   trunk/libswscale/yuv2rgb_template.c

Modified: trunk/libswscale/yuv2rgb_template.c
==============================================================================
--- trunk/libswscale/yuv2rgb_template.c	(original)
+++ trunk/libswscale/yuv2rgb_template.c	Thu Apr 17 23:54:43 2008
@@ -133,7 +133,7 @@ static inline int RENAME(yuv420_rgb16)(S
     h_size= (c->dstW+7)&~7;
     if(h_size*2 > FFABS(dstStride[0])) h_size-=8;
 
-    __asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
+    asm volatile ("pxor %mm4, %mm4;" /* zero mm4 */ );
     //printf("%X %X %X %X %X %X %X %X %X %X\n", (int)&c->redDither, (int)&b5Dither, (int)src[0], (int)src[1], (int)src[2], (int)dst[0],
     //srcStride[0],srcStride[1],srcStride[2],dstStride[0]);
     for (y= 0; y<srcSliceH; y++ ) {
@@ -149,7 +149,7 @@ static inline int RENAME(yuv420_rgb16)(S
         r5Dither= ff_dither8[(y+1)&1];
         /* this mmx assembly code deals with SINGLE scan line at a time, it convert 8
            pixels in each iteration */
-        __asm__ __volatile__ (
+        asm volatile (
         /* load data for start of next scan line */
         "movd    (%2, %0), %%mm0;" /* Load 4 Cb 00 00 00 00 u3 u2 u1 u0 */
         "movd    (%3, %0), %%mm1;" /* Load 4 Cr 00 00 00 00 v3 v2 v1 v0 */
@@ -211,7 +211,7 @@ YUV2RGB
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
 
     return srcSliceH;
 }
@@ -228,7 +228,7 @@ static inline int RENAME(yuv420_rgb15)(S
     h_size= (c->dstW+7)&~7;
     if(h_size*2 > FFABS(dstStride[0])) h_size-=8;
 
-    __asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
+    asm volatile ("pxor %mm4, %mm4;" /* zero mm4 */ );
     //printf("%X %X %X %X %X %X %X %X %X %X\n", (int)&c->redDither, (int)&b5Dither, (int)src[0], (int)src[1], (int)src[2], (int)dst[0],
     //srcStride[0],srcStride[1],srcStride[2],dstStride[0]);
     for (y= 0; y<srcSliceH; y++ ) {
@@ -244,7 +244,7 @@ static inline int RENAME(yuv420_rgb15)(S
         r5Dither= ff_dither8[(y+1)&1];
         /* this mmx assembly code deals with SINGLE scan line at a time, it convert 8
            pixels in each iteration */
-        __asm__ __volatile__ (
+        asm volatile (
         /* load data for start of next scan line */
         "movd    (%2, %0), %%mm0;" /* Load 4 Cb 00 00 00 00 u3 u2 u1 u0 */
         "movd    (%3, %0), %%mm1;" /* Load 4 Cr 00 00 00 00 v3 v2 v1 v0 */
@@ -301,7 +301,7 @@ YUV2RGB
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
     return srcSliceH;
 }
 
@@ -317,7 +317,7 @@ static inline int RENAME(yuv420_rgb24)(S
     h_size= (c->dstW+7)&~7;
     if(h_size*3 > FFABS(dstStride[0])) h_size-=8;
 
-    __asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
+    asm volatile ("pxor %mm4, %mm4;" /* zero mm4 */ );
 
     for (y= 0; y<srcSliceH; y++ ) {
         uint8_t *image = dst[0] + (y+srcSliceY)*dstStride[0];
@@ -328,7 +328,7 @@ static inline int RENAME(yuv420_rgb24)(S
 
         /* this mmx assembly code deals with SINGLE scan line at a time, it convert 8
            pixels in each iteration */
-        __asm__ __volatile__ (
+        asm volatile (
         /* load data for start of next scan line */
         "movd    (%2, %0), %%mm0;" /* Load 4 Cb 00 00 00 00 u3 u2 u1 u0 */
         "movd    (%3, %0), %%mm1;" /* Load 4 Cr 00 00 00 00 v3 v2 v1 v0 */
@@ -447,7 +447,7 @@ YUV2RGB
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
     return srcSliceH;
 }
 
@@ -463,7 +463,7 @@ static inline int RENAME(yuv420_rgb32)(S
     h_size= (c->dstW+7)&~7;
     if(h_size*4 > FFABS(dstStride[0])) h_size-=8;
 
-    __asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
+    asm volatile ("pxor %mm4, %mm4;" /* zero mm4 */ );
 
     for (y= 0; y<srcSliceH; y++ ) {
         uint8_t *image = dst[0] + (y+srcSliceY)*dstStride[0];
@@ -474,7 +474,7 @@ static inline int RENAME(yuv420_rgb32)(S
 
         /* this mmx assembly code deals with SINGLE scan line at a time, it convert 8
            pixels in each iteration */
-        __asm__ __volatile__ (
+        asm volatile (
         /* load data for start of next scan line */
         "movd    (%2, %0), %%mm0;" /* Load 4 Cb 00 00 00 00 u3 u2 u1 u0 */
         "movd    (%3, %0), %%mm1;" /* Load 4 Cr 00 00 00 00 v3 v2 v1 v0 */
@@ -533,6 +533,6 @@ YUV2RGB
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
     return srcSliceH;
 }



More information about the MPlayer-cvslog mailing list