aboutsummaryrefslogtreecommitdiffstats
path: root/postproc/rgb2rgb.c
diff options
context:
space:
mode:
authorNick Kurshev <nickols_k@mail.ru>2001-10-28 13:59:57 +0000
committerNick Kurshev <nickols_k@mail.ru>2001-10-28 13:59:57 +0000
commit79811694c509d11d4a547afb8286267d0e39b1e8 (patch)
tree421afb244e6764815c9a02368bf01955973712b4 /postproc/rgb2rgb.c
parent18224bc9bee6f78c38337cc51ec6c484241e7cdb (diff)
downloadffmpeg-79811694c509d11d4a547afb8286267d0e39b1e8.tar.gz
sfence
Originally committed as revision 2514 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/rgb2rgb.c')
-rw-r--r--postproc/rgb2rgb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c
index 6ba49112e8..4ddb7d769d 100644
--- a/postproc/rgb2rgb.c
+++ b/postproc/rgb2rgb.c
@@ -23,6 +23,10 @@
#define MOVNTQ "movq"
#endif
+#ifdef HAVE_MMX2
+#define SFENCE "sfence"
+#endif
+
void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
{
uint8_t *dest = dst;
@@ -65,6 +69,9 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
dest += 16;
s += 12;
}
+#ifdef SFENCE
+ __asm __volatile(SFENCE:::"memory");
+#endif
__asm __volatile(EMMS:::"memory");
#endif
while(s < end)