[Mplayer-cvslog] CVS: main/postproc rgb2rgb.c,1.7,1.8

Nick Kurshev nick at mplayer.dev.hu
Sun Oct 28 15:00:00 CET 2001


Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv15006/main/postproc

Modified Files:
	rgb2rgb.c 
Log Message:
sfence

Index: rgb2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- rgb2rgb.c	28 Oct 2001 13:06:49 -0000	1.7
+++ rgb2rgb.c	28 Oct 2001 13:59:57 -0000	1.8
@@ -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 @@
     dest += 16;
     s += 12;
   }
+#ifdef SFENCE
+  __asm __volatile(SFENCE:::"memory");
+#endif
   __asm __volatile(EMMS:::"memory");
 #endif
   while(s < end)




More information about the MPlayer-cvslog mailing list