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)
55 " jmp %%pc@(1f,%3:w:2)\n"
56 "4: movel %0@+,%1@+\n"
68 : "=a" (lfrom
), "=a" (lto
), "=d" (temp
), "=&d" (temp1
)
69 : "0" (lfrom
), "1" (lto
), "2" (temp
));
76 const short *sfrom
= from
;
83 const char *cfrom
= from
;
88 EXPORT_SYMBOL(memcpy
);