diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-10-11 05:15:42 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2007-10-11 05:15:42 -0400 |
commit | 5fa2ae8e9e6c5a23e0e3955d3c0d55c1e08e603f (patch) | |
tree | 74c5844950c65a92b16233d3463c39d3c54714a8 /arch/x86_64/lib/memmove.c | |
parent | 79c67e5356db9dbf2974962fe589d7482e463dc5 (diff) |
x86_64: prepare shared lib/memmove.c
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86_64/lib/memmove.c')
-rw-r--r-- | arch/x86_64/lib/memmove.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/x86_64/lib/memmove.c b/arch/x86_64/lib/memmove.c deleted file mode 100644 index 751ebae8ec42..000000000000 --- a/arch/x86_64/lib/memmove.c +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* Normally compiler builtins are used, but sometimes the compiler calls out | ||
2 | of line code. Based on asm-i386/string.h. | ||
3 | */ | ||
4 | #define _STRING_C | ||
5 | #include <linux/string.h> | ||
6 | #include <linux/module.h> | ||
7 | |||
8 | #undef memmove | ||
9 | void *memmove(void * dest,const void *src,size_t count) | ||
10 | { | ||
11 | if (dest < src) { | ||
12 | return memcpy(dest,src,count); | ||
13 | } else { | ||
14 | char *p = (char *) dest + count; | ||
15 | char *s = (char *) src + count; | ||
16 | while (count--) | ||
17 | *--p = *--s; | ||
18 | } | ||
19 | return dest; | ||
20 | } | ||
21 | EXPORT_SYMBOL(memmove); | ||