diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-11-04 21:45:34 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-11-12 16:58:49 +0000 |
commit | 7cbac6859327296fba1c873d1f589fa90c1b9d91 (patch) | |
tree | fa56f93d32d0be1c92973c9b3f55e41a1ca4dd38 /src/arch | |
parent | 520323e36049f89ba0480cd5d0da2ade08197b0e (diff) | |
download | ipxe-7cbac6859327296fba1c873d1f589fa90c1b9d91.zip ipxe-7cbac6859327296fba1c873d1f589fa90c1b9d91.tar.gz ipxe-7cbac6859327296fba1c873d1f589fa90c1b9d91.tar.bz2 |
[libc] Remove obsolete implementation of memcpy()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/include/bits/string.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/arch/x86/include/bits/string.h b/src/arch/x86/include/bits/string.h index f35cdab..d9ebe30 100644 --- a/src/arch/x86/include/bits/string.h +++ b/src/arch/x86/include/bits/string.h @@ -27,18 +27,6 @@ FILE_LICENCE ( PUBLIC_DOMAIN ); extern void * __memcpy ( void *dest, const void *src, size_t len ); -#if 0 -static inline __attribute__ (( always_inline )) void * -__memcpy ( void *dest, const void *src, size_t len ) { - int d0, d1, d2; - __asm__ __volatile__ ( "rep ; movsb" - : "=&c" ( d0 ), "=&S" ( d1 ), "=&D" ( d2 ) - : "0" ( len ), "1" ( src ), "2" ( dest ) - : "memory" ); - return dest; -} -#endif - static inline __attribute__ (( always_inline )) void * __constant_memcpy ( void *dest, const void *src, size_t len ) { union { |