# HG changeset patch # User gpoirier # Date 1106341895 0 # Node ID 1a13df0d4fc269218dc21d4350bdc9c73fad79b6 # Parent f85875877de952ea74a5d9a2cc6399a66ad62179 Make this file compile with gcc-4.0.0. The old code was invalid C. (with the blessing of Rich) diff -r f85875877de9 -r 1a13df0d4fc2 libvo/aclib_template.c --- 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"