changeset 30920:570e001f2e53

Convert asm keyword to __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 diego
date Fri, 26 Mar 2010 08:13:10 +0000
parents b1d63f9600c0
children 83faa3af5f60
files libmpcodecs/vf_gradfun.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_gradfun.c	Fri Mar 26 07:57:54 2010 +0000
+++ b/libmpcodecs/vf_gradfun.c	Fri Mar 26 08:13:10 2010 +0000
@@ -102,7 +102,7 @@
         width = x;
     }
     x = -width;
-    asm volatile(
+    __asm__ volatile(
         "movd          %4, %%mm5 \n"
         "pxor       %%mm7, %%mm7 \n"
         "pshufw $0, %%mm5, %%mm5 \n"
@@ -150,7 +150,7 @@
         width = x;
     }
     x = -width;
-    asm volatile(
+    __asm__ volatile(
         "movd           %4, %%xmm5 \n"
         "pxor       %%xmm7, %%xmm7 \n"
         "pshuflw $0,%%xmm5, %%xmm5 \n"
@@ -187,7 +187,7 @@
 
 #define BLURV(load)\
     intptr_t x = -2*width;\
-    asm volatile(\
+    __asm__ volatile(\
         "movdqa %6, %%xmm7 \n"\
         "1: \n"\
         load"   (%4,%0), %%xmm0 \n"\