diff options
author | austriancoder <austriancoder> | 2004-09-13 16:23:16 +0000 |
---|---|---|
committer | austriancoder <austriancoder> | 2004-09-13 16:23:16 +0000 |
commit | 05bc5bd2466f42a18fe467ee611f0a2e42bade39 (patch) | |
tree | c330021f2c5bc1b9d15c8d8dd8b13a6fa7ed29a5 /dxr3memcpy.c | |
parent | 433938312aba894f3487064387a59336f0e76acc (diff) | |
download | vdr-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.c | 5 |
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 ( |