[MPlayer-cvslog] CVS: main/libvo aclib_template.c,1.10,1.11

Guillaume Poirier CVS syncmail at mplayerhq.hu
Fri Jan 21 22:11:37 CET 2005


CVS change done by Guillaume Poirier CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv12719/libvo

Modified Files:
	aclib_template.c 
Log Message:
Make this file compile with gcc-4.0.0. The old code was invalid C.
(with the blessing of Rich)


Index: aclib_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/aclib_template.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- aclib_template.c	21 Oct 2004 11:55:20 -0000	1.10
+++ aclib_template.c	21 Jan 2005 21:11:35 -0000	1.11
@@ -199,8 +199,8 @@
 		"movntps %%xmm2, 32(%1)\n"
 		"movntps %%xmm3, 48(%1)\n"
 		:: "r" (from), "r" (to) : "memory");
-		((const unsigned char *)from)+=64;
-		((unsigned char *)to)+=64;
+		from=((const unsigned char *) from)+64;
+		to=((unsigned char *)to)+64;
 	}
 	else
 	/*
@@ -221,8 +221,8 @@
 		"movntps %%xmm2, 32(%1)\n"
 		"movntps %%xmm3, 48(%1)\n"
 		:: "r" (from), "r" (to) : "memory");
-		((const unsigned char *)from)+=64;
-		((unsigned char *)to)+=64;
+		from=((const unsigned char *)from)+64;
+		to=((unsigned char *)to)+64;
 	}
 #else
 	// Align destination at BLOCK_SIZE boundary
@@ -424,8 +424,8 @@
 		MOVNTQ" %%mm6, 48(%1)\n"
 		MOVNTQ" %%mm7, 56(%1)\n"
 		:: "r" (from), "r" (to) : "memory");
-		((const unsigned char *)from)+=64;
-		((unsigned char *)to)+=64;
+		from=((const unsigned char *)from)+64;
+		to=((unsigned char *)to)+64;
 	}
 #ifdef HAVE_MMX2
                 /* since movntq is weakly-ordered, a "sfence"




More information about the MPlayer-cvslog mailing list