2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file COPYING in the main directory of this archive
9 #include <linux/module.h>
10 #include <linux/string.h>
12 char *strcpy(char *dest, const char *src)
14 return __kernel_strcpy(dest, src);
16 EXPORT_SYMBOL(strcpy);
18 char *strcat(char *dest, const char *src)
20 return __kernel_strcpy(dest + __kernel_strlen(dest), src);
22 EXPORT_SYMBOL(strcat);
24 void *memcpy(void *to, const void *from, size_t n)
33 const char *cfrom = from;
39 if (n > 2 && (long)to & 2) {
41 const short *sfrom = from;
50 const long *lfrom = from;
57 " jmp %%pc@(1f,%3:w:2)\n"
58 "4: movel %0@+,%1@+\n"
70 : "=a" (lfrom), "=a" (lto), "=d" (temp), "=&d" (temp1)
71 : "0" (lfrom), "1" (lto), "2" (temp));
77 const short *sfrom = from;
84 const char *cfrom = from;
89 EXPORT_SYMBOL(memcpy);