summaryrefslogtreecommitdiffstats
path: root/libvo/fastmemcpy.h
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-18 20:44:16 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-18 20:44:16 +0000
commite4c014f334eb56226b5725d7f891b888a57ff93a (patch)
treeb6fd3af020ebf7543389068ec8fdebdc26abd434 /libvo/fastmemcpy.h
parent05d3596822603531a364b4429bd323bd350a0411 (diff)
downloadmpv-e4c014f334eb56226b5725d7f891b888a57ff93a.tar.bz2
mpv-e4c014f334eb56226b5725d7f891b888a57ff93a.tar.xz
replace "movsl..." to small_memcpy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@514 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/fastmemcpy.h')
-rw-r--r--libvo/fastmemcpy.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/libvo/fastmemcpy.h b/libvo/fastmemcpy.h
index a90a0bfe7d..09c40bc12f 100644
--- a/libvo/fastmemcpy.h
+++ b/libvo/fastmemcpy.h
@@ -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