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(__mc68020__) || defined(__mc68030__) || \
38 defined(__mc68040__) || defined(__mc68060__) || defined(__mcpu32__)
44 " jmp %%pc@(1f,%3:w:2)\n"
45 "4: movel %0@+,%1@+\n"
57 : "=a" (lfrom), "=a" (lto), "=d" (temp), "=&d" (temp1)
58 : "0" (lfrom), "1" (lto), "2" (temp));
68 const short *sfrom = from;
75 const char *cfrom = from;
80 EXPORT_SYMBOL(memcpy);