Ver código fonte

[libc] Remove obsolete implementation of memcpy()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 anos atrás
pai
commit
7cbac68593
1 arquivos alterados com 0 adições e 12 exclusões
  1. 0
    12
      src/arch/x86/include/bits/string.h

+ 0
- 12
src/arch/x86/include/bits/string.h Ver arquivo

@@ -27,18 +27,6 @@ FILE_LICENCE ( PUBLIC_DOMAIN );
27 27
 
28 28
 extern void * __memcpy ( void *dest, const void *src, size_t len );
29 29
 
30
-#if 0
31
-static inline __attribute__ (( always_inline )) void *
32
-__memcpy ( void *dest, const void *src, size_t len ) {
33
-	int d0, d1, d2;
34
-	__asm__ __volatile__ ( "rep ; movsb"
35
-			       : "=&c" ( d0 ), "=&S" ( d1 ), "=&D" ( d2 )
36
-			       : "0" ( len ), "1" ( src ), "2" ( dest )
37
-			       : "memory" );
38
-	return dest; 
39
-}
40
-#endif
41
-
42 30
 static inline __attribute__ (( always_inline )) void *
43 31
 __constant_memcpy ( void *dest, const void *src, size_t len ) {
44 32
 	union {

Carregando…
Cancelar
Salvar