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
7 #include <linux/module.h>
8 #include <linux/string.h>
10 void *memcpy(void *to, const void *from, size_t n)
19 const char *cfrom = from;
25 if (n > 2 && (long)to & 2) {
27 const short *sfrom = from;
36 const long *lfrom = from;
37 #if defined(CONFIG_M68000) || defined(CONFIG_COLDFIRE)
46 " jmp %%pc@(1f,%3:w:2)\n"
47 "4: movel %0@+,%1@+\n"
59 : "=a" (lfrom), "=a" (lto), "=d" (temp), "=&d" (temp1)
60 : "0" (lfrom), "1" (lto), "2" (temp));
67 const short *sfrom = from;
74 const char *cfrom = from;
79 EXPORT_SYMBOL(memcpy);