瀏覽代碼

[libc] Remove obsolete implementation of memcpy()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 年之前
父節點
當前提交
7cbac68593
共有 1 個文件被更改,包括 0 次插入12 次删除
  1. 0
    12
      src/arch/x86/include/bits/string.h

+ 0
- 12
src/arch/x86/include/bits/string.h 查看文件

@@ -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 {

Loading…
取消
儲存