1 #ifndef __ALPHA_STRING_H__
2 #define __ALPHA_STRING_H__
3
4 extern void * __constant_c_memset(void *, unsigned long, long);
5 extern void * __memset(void *, char, size_t);
6
7
8
9
10 #define __HAVE_ARCH_BCOPY
11
12
13
14
15
16
17
18 #define __HAVE_ARCH_MEMCPY
19 extern void * __memcpy(void *, const void *, size_t);
20 #define memcpy __memcpy
21
22 #define __HAVE_ARCH_MEMSET
23 #define memset(s, c, count) \
24 (__builtin_constant_p(c) ? \
25 __constant_c_memset((s),(0x0101010101010101UL*(unsigned char)c),(count)) : \
26 __memset((s),(c),(count)))
27
28 #define __HAVE_ARCH_STRLEN
29
30 #endif