blob: 373aa92273f82f25bb82b5d15a5c7cf513257b9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* For archs that lack assembly optimized versions of those */
#include "string.h"
_PTR _EXFUN(memset,(_PTR, int, size_t));
_PTR memset(_PTR data, int val, size_t count)
{
for (int i=0; i < count; i++)
((char*)data)[i] = val;
return data;
}
_PTR memcpy(_PTR dst, const _PTR src, size_t count)
{
for (int i=0; i < count; i++)
((char*)dst)[i] = ((char*)src)[i];
return dst;
}
|