]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[libc] Remove obsolete implementation of memcpy()
authorMichael Brown <mcb30@ipxe.org>
Sun, 4 Nov 2012 21:45:34 +0000 (21:45 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 12 Nov 2012 16:58:49 +0000 (16:58 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/include/bits/string.h

index f35cdab1c7deaca34d32d9cd099faa0a09ddecc0..d9ebe30604635fb82f0bd27834d9f83316e5ec9b 100644 (file)
@@ -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 {