changeset 14565:1a13df0d4fc2

Make this file compile with gcc-4.0.0. The old code was invalid C. (with the blessing of Rich)
author gpoirier
date Fri, 21 Jan 2005 21:11:35 +0000
parents f85875877de9
children f38a2658bdd4
files libvo/aclib_template.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/aclib_template.c	Fri Jan 21 20:50:09 2005 +0000
+++ b/libvo/aclib_template.c	Fri Jan 21 21:11:35 2005 +0000
@@ -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"