From 4825a2ee81792f5e3e2047357ac6284b615063a1 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 24 Feb 2008 14:59:16 +0000 Subject: __asm __volatile -> asm volatile part 3 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26091 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/rgb2rgb_template.c | 166 +++++++++++++++++++++--------------------- libswscale/swscale_template.c | 4 +- 2 files changed, 85 insertions(+), 85 deletions(-) diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c index 60aa9df20a..4aa607d9af 100644 --- a/libswscale/rgb2rgb_template.c +++ b/libswscale/rgb2rgb_template.c @@ -92,12 +92,12 @@ static inline void RENAME(rgb24to32)(const uint8_t *src, uint8_t *dst, long src_ #endif end = s + src_size; #ifdef HAVE_MMX - __asm __volatile(PREFETCH" %0"::"m"(*s):"memory"); + asm volatile(PREFETCH" %0"::"m"(*s):"memory"); mm_end = end - 23; - __asm __volatile("movq %0, %%mm7"::"m"(mask32):"memory"); + asm volatile("movq %0, %%mm7"::"m"(mask32):"memory"); while (s < mm_end) { - __asm __volatile( + asm volatile( PREFETCH" 32%1 \n\t" "movd %1, %%mm0 \n\t" "punpckldq 3%1, %%mm0 \n\t" @@ -121,8 +121,8 @@ static inline void RENAME(rgb24to32)(const uint8_t *src, uint8_t *dst, long src_ dest += 32; s += 24; } - __asm __volatile(SFENCE:::"memory"); - __asm __volatile(EMMS:::"memory"); + asm volatile(SFENCE:::"memory"); + asm volatile(EMMS:::"memory"); #endif while (s < end) { @@ -152,11 +152,11 @@ static inline void RENAME(rgb32to24)(const uint8_t *src, uint8_t *dst, long src_ #endif end = s + src_size; #ifdef HAVE_MMX - __asm __volatile(PREFETCH" %0"::"m"(*s):"memory"); + asm volatile(PREFETCH" %0"::"m"(*s):"memory"); mm_end = end - 31; while (s < mm_end) { - __asm __volatile( + asm volatile( PREFETCH" 32%1 \n\t" "movq %1, %%mm0 \n\t" "movq 8%1, %%mm1 \n\t" @@ -207,8 +207,8 @@ static inline void RENAME(rgb32to24)(const uint8_t *src, uint8_t *dst, long src_ dest += 24; s += 32; } - __asm __volatile(SFENCE:::"memory"); - __asm __volatile(EMMS:::"memory"); + asm volatile(SFENCE:::"memory"); + asm volatile(EMMS:::"memory"); #endif while (s < end) { @@ -242,12 +242,12 @@ static inline void RENAME(rgb15to16)(const uint8_t *src, uint8_t *dst, long src_ const uint8_t *mm_end; end = s + src_size; #ifdef HAVE_MMX - __asm __volatile(PREFETCH" %0"::"m"(*s)); - __asm __volatile("movq %0, %%mm4"::"m"(mask15s)); + asm volatile(PREFETCH" %0"::"m"(*s)); + asm volatile("movq %0, %%mm4"::"m"(mask15s)); mm_end = end - 15; while (sdstY= dstY; -- cgit v1.2.3