diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-21 21:11:35 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-01-21 21:11:35 +0000 |
commit | ded52c0bc767b600829232e2c54b5b51af6c5317 (patch) | |
tree | cfce41680531ad96be48f31e9d70f4eb2977930f /libvo/aclib_template.c | |
parent | a37ebc990388dbb5319727b63c571e37f8b1bf08 (diff) | |
download | mpv-ded52c0bc767b600829232e2c54b5b51af6c5317.tar.bz2 mpv-ded52c0bc767b600829232e2c54b5b51af6c5317.tar.xz |
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
Diffstat (limited to 'libvo/aclib_template.c')
-rw-r--r-- | libvo/aclib_template.c | 12 |
1 files 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" |