From ded52c0bc767b600829232e2c54b5b51af6c5317 Mon Sep 17 00:00:00 2001 From: gpoirier Date: Fri, 21 Jan 2005 21:11:35 +0000 Subject: [PATCH] Make this file compile with gcc-4.0.0. The old code was invalid C. (with the blessing of Rich) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14566 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/aclib_template.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libvo/aclib_template.c b/libvo/aclib_template.c index 0b50f7ecf3..4ec6c492fb 100644 --- a/libvo/aclib_template.c +++ b/libvo/aclib_template.c @@ -199,8 +199,8 @@ static void * RENAME(fast_memcpy)(void * to, const void * from, size_t len) "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 @@ static void * RENAME(fast_memcpy)(void * to, const void * from, size_t len) "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 @@ static void * RENAME(mem2agpcpy)(void * to, const void * from, size_t len) 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"