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