annotate libgcc/memcpy.c @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Public domain. */
kono
parents:
diff changeset
2 #include <stddef.h>
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 void *
kono
parents:
diff changeset
5 memcpy (void *dest, const void *src, size_t len)
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 char *d = dest;
kono
parents:
diff changeset
8 const char *s = src;
kono
parents:
diff changeset
9 while (len--)
kono
parents:
diff changeset
10 *d++ = *s++;
kono
parents:
diff changeset
11 return dest;
kono
parents:
diff changeset
12 }