replace "movsl..." to small_memcpy

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@514 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2001-04-18 20:44:16 +00:00
parent 05d3596822
commit e4c014f334
1 changed files with 2 additions and 15 deletions

View File

@ -126,26 +126,13 @@ inline static void * fast_memcpy(void * to, const void * from, unsigned len)
/*
* Now do the tail of the block
*/
#if 0
small_memcpy(to, from, len);
#else
__asm__ __volatile__ (
"shrl $1,%%ecx\n"
"jnc 1f\n"
"movsb\n"
"1:\n"
"shrl $1,%%ecx\n"
"jnc 2f\n"
"movsw\n"
"2:\n"
"rep ; movsl\n"
::"D" (to), "S" (from),"c" (len)
: "memory");
#endif
return p;
}
#define memcpy(a,b,c) fast_memcpy(a,b,c)
#undef small_memcpy
#endif
#endif