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 defined(CONFIG_M68000)
28 const char *cfrom
= from
;
34 if (n
> 2 && (long)to
& 2) {
36 const short *sfrom
= from
;
45 const long *lfrom
= from
;
46 #if defined(CONFIG_M68000) || defined(CONFIG_COLDFIRE)
56 " jmp %%pc@(1f,%3:w:2)\n"
57 "4: movel %0@+,%1@+\n"
69 : "=a" (lfrom
), "=a" (lto
), "=d" (temp
), "=&d" (temp1
)
70 : "0" (lfrom
), "1" (lto
), "2" (temp
));
77 const short *sfrom
= from
;
84 const char *cfrom
= from
;
89 EXPORT_SYMBOL(memcpy
);