changeset 26424:383b83bd14c6

cosmetics: __asm__ __volatile__ --> asm volatile
author diego
date Thu, 17 Apr 2008 21:54:43 +0000
parents 38b8096cae32
children 3357581cefa5
files libswscale/yuv2rgb_template.c
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/yuv2rgb_template.c	Wed Apr 16 12:03:34 2008 +0000
+++ b/libswscale/yuv2rgb_template.c	Thu Apr 17 21:54:43 2008 +0000
@@ -133,7 +133,7 @@
     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 @@
         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 @@
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
 
     return srcSliceH;
 }
@@ -228,7 +228,7 @@
     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 @@
         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 @@
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
     return srcSliceH;
 }
 
@@ -317,7 +317,7 @@
     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 @@
 
         /* 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 @@
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
     return srcSliceH;
 }
 
@@ -463,7 +463,7 @@
     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 @@
 
         /* 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 @@
         );
     }
 
-    __asm__ __volatile__ (EMMS);
+    asm volatile (EMMS);
     return srcSliceH;
 }