diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-26 08:13:10 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-26 08:13:10 +0000 |
commit | a8a34f32a1f8e22c83d487ae47098ddef7df6707 (patch) | |
tree | b59a4382cdbc87d8a352b5a4ef1c87a90e1d223a /libmpcodecs/vf_gradfun.c | |
parent | a6e3a9ff23818247d4c38d34fab4421f62729be3 (diff) | |
download | mpv-a8a34f32a1f8e22c83d487ae47098ddef7df6707.tar.bz2 mpv-a8a34f32a1f8e22c83d487ae47098ddef7df6707.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30962 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_gradfun.c')
-rw-r--r-- | libmpcodecs/vf_gradfun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vf_gradfun.c b/libmpcodecs/vf_gradfun.c index 6971e4abc2..57c61d41eb 100644 --- a/libmpcodecs/vf_gradfun.c +++ b/libmpcodecs/vf_gradfun.c @@ -102,7 +102,7 @@ static void filter_line_mmx2(uint8_t *dst, uint8_t *src, uint16_t *dc, 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 @@ static void filter_line_ssse3(uint8_t *dst, uint8_t *src, uint16_t *dc, 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 @@ static void filter_line_ssse3(uint8_t *dst, uint8_t *src, uint16_t *dc, #define BLURV(load)\ intptr_t x = -2*width;\ - asm volatile(\ + __asm__ volatile(\ "movdqa %6, %%xmm7 \n"\ "1: \n"\ load" (%4,%0), %%xmm0 \n"\ |