summaryrefslogtreecommitdiff
path: root/dxr3memcpy.c
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-09-13 16:23:16 +0000
committeraustriancoder <austriancoder>2004-09-13 16:23:16 +0000
commit05bc5bd2466f42a18fe467ee611f0a2e42bade39 (patch)
treec330021f2c5bc1b9d15c8d8dd8b13a6fa7ed29a5 /dxr3memcpy.c
parent433938312aba894f3487064387a59336f0e76acc (diff)
downloadvdr-plugin-dxr3-05bc5bd2466f42a18fe467ee611f0a2e42bade39.tar.gz
vdr-plugin-dxr3-05bc5bd2466f42a18fe467ee611f0a2e42bade39.tar.bz2
added and converted comments into a doxygen friendly format
Diffstat (limited to 'dxr3memcpy.c')
-rw-r--r--dxr3memcpy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dxr3memcpy.c b/dxr3memcpy.c
index b274bab..06dd134 100644
--- a/dxr3memcpy.c
+++ b/dxr3memcpy.c
@@ -40,6 +40,9 @@ void *(* dxr3_memcpy)(void *to, const void *from, size_t len);
#if defined(ARCH_X86) || defined(ARCH_X86_64)
// ==================================
// for small memory blocks (<256 bytes) this version is faster
+#define small_memcpy(to,from,n) { register unsigned long int dummy; __asm__ __volatile__("rep; movsb":"=&D"(to), "=&S"(from), "=&c"(dummy) :"0" (to), "1" (from),"2" (n) : "memory"); }
+/*
+// -- dosn't compile with 2.95 gcc --
#define small_memcpy(to,from,n)\
{\
register unsigned long int dummy;\
@@ -49,7 +52,7 @@ __asm__ __volatile__(\
:"0" (to), "1" (from),"2" (n)\
: "memory");\
}
-
+*/
// ==================================
// linux kernel __memcpy (from: /include/asm/string.h)
static __inline__ void * __memcpy (