[Mplayer-cvslog] CVS: main/postproc swscale.c,1.23,1.24

Michael Niedermayer michael at mplayer.dev.hu
Sun Oct 28 20:54:42 CET 2001


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

Modified Files:
	swscale.c 
Log Message:
tell the c compiler that the memory changed


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- swscale.c	28 Oct 2001 19:41:50 -0000	1.23
+++ swscale.c	28 Oct 2001 19:54:23 -0000	1.24
@@ -448,6 +448,8 @@
 	int uvalpha1=uvalpha^4095;
 	int i;
 
+	asm volatile ("\n\t"::: "memory");
+
 	for(i=0;i<dstw;i++)
 	{
 		((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19;
@@ -625,6 +627,8 @@
 			);
 		}
 #else
+		asm volatile ("\n\t"::: "memory");
+
 		if(dstbpp==32 || dstbpp==24)
 		{
 			for(i=0;i<dstw;i++){
@@ -733,6 +737,8 @@
 		}
 #else
 //FIXME unroll C loop and dont recalculate UV
+		asm volatile ("\n\t"::: "memory");
+
 		if(dstbpp==32 || dstbpp==24)
 		{
 			for(i=0;i<dstw;i++){
@@ -850,6 +856,8 @@
 		}
 #else
 //FIXME unroll C loop and dont recalculate UV
+		asm volatile ("\n\t"::: "memory");
+
 		if(dstbpp==32 || dstbpp==24)
 		{
 			for(i=0;i<dstw;i++){




More information about the MPlayer-cvslog mailing list