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
This commit is contained in:
gpoirier 2005-01-21 21:11:35 +00:00
parent a37ebc9903
commit ded52c0bc7
1 changed files with 6 additions and 6 deletions

View File

@ -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"