summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/string.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/include/asm-i386/string.h b/include/asm-i386/string.h
index a14f9f37d9c1..34d5a4180bdb 100644
--- a/include/asm-i386/string.h
+++ b/include/asm-i386/string.h
@@ -294,24 +294,7 @@ extern void __struct_cpy_bug (void);
})
#define __HAVE_ARCH_MEMMOVE
-static inline void * memmove(void * dest,const void * src, size_t n)
-{
-int d0, d1, d2;
-if (dest<src) {
- memcpy(dest,src,n);
-} else
-__asm__ __volatile__(
- "std\n\t"
- "rep\n\t"
- "movsb\n\t"
- "cld"
- : "=&c" (d0), "=&S" (d1), "=&D" (d2)
- :"0" (n),
- "1" (n-1+(const char *)src),
- "2" (n-1+(char *)dest)
- :"memory");
-return dest;
-}
+void *memmove(void * dest,const void * src, size_t n);
#define memcmp __builtin_memcmp