mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01:00
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:
parent
a37ebc9903
commit
ded52c0bc7
@ -199,8 +199,8 @@ static void * RENAME(fast_memcpy)(void * to, const void * from, size_t len)
|
|||||||
"movntps %%xmm2, 32(%1)\n"
|
"movntps %%xmm2, 32(%1)\n"
|
||||||
"movntps %%xmm3, 48(%1)\n"
|
"movntps %%xmm3, 48(%1)\n"
|
||||||
:: "r" (from), "r" (to) : "memory");
|
:: "r" (from), "r" (to) : "memory");
|
||||||
((const unsigned char *)from)+=64;
|
from=((const unsigned char *) from)+64;
|
||||||
((unsigned char *)to)+=64;
|
to=((unsigned char *)to)+64;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/*
|
/*
|
||||||
@ -221,8 +221,8 @@ static void * RENAME(fast_memcpy)(void * to, const void * from, size_t len)
|
|||||||
"movntps %%xmm2, 32(%1)\n"
|
"movntps %%xmm2, 32(%1)\n"
|
||||||
"movntps %%xmm3, 48(%1)\n"
|
"movntps %%xmm3, 48(%1)\n"
|
||||||
:: "r" (from), "r" (to) : "memory");
|
:: "r" (from), "r" (to) : "memory");
|
||||||
((const unsigned char *)from)+=64;
|
from=((const unsigned char *)from)+64;
|
||||||
((unsigned char *)to)+=64;
|
to=((unsigned char *)to)+64;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
// Align destination at BLOCK_SIZE boundary
|
// 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" %%mm6, 48(%1)\n"
|
||||||
MOVNTQ" %%mm7, 56(%1)\n"
|
MOVNTQ" %%mm7, 56(%1)\n"
|
||||||
:: "r" (from), "r" (to) : "memory");
|
:: "r" (from), "r" (to) : "memory");
|
||||||
((const unsigned char *)from)+=64;
|
from=((const unsigned char *)from)+64;
|
||||||
((unsigned char *)to)+=64;
|
to=((unsigned char *)to)+64;
|
||||||
}
|
}
|
||||||
#ifdef HAVE_MMX2
|
#ifdef HAVE_MMX2
|
||||||
/* since movntq is weakly-ordered, a "sfence"
|
/* since movntq is weakly-ordered, a "sfence"
|
||||||
|
Loading…
Reference in New Issue
Block a user