Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[libc] Remove obsolete implementation of memcpy()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Nov 12, 2012
1 parent 520323e commit 7cbac68
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/arch/x86/include/bits/string.h
Expand Up @@ -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 {
Expand Down

0 comments on commit 7cbac68

Please sign in to comment.