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 extern void * __memcpy(void *, const void *, size_t); 7 8 #define __HAVE_ARCH_MEMSET 9 #define memset(s, c, count) \ 10 (__builtin_constant_p(c) ? \ 11 __constant_c_memset((s),(0x0101010101010101UL*(unsigned char)c),(count)) : \ 12 __memset((s),(c),(count))) 13 14 #define __HAVE_ARCH_STRLEN 15 16 #endif