Go to the documentation of this file.
9 #ifndef __SPARC64_STRING_H__
10 #define __SPARC64_STRING_H__
18 #ifndef EXPORT_SYMTAB_STROPS
21 #define __HAVE_ARCH_MEMMOVE
24 #define __HAVE_ARCH_MEMCPY
25 #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
27 #define __HAVE_ARCH_MEMSET
28 #define memset(s, c, count) __builtin_memset(s, c, count)
30 #define __HAVE_ARCH_MEMSCAN
33 #define memscan(__arg0, __char, __arg2) \
35 extern void *__memscan_zero(void *, size_t); \
36 extern void *__memscan_generic(void *, int, size_t); \
37 void *__retval, *__addr = (__arg0); \
38 size_t __size = (__arg2); \
40 if(__builtin_constant_p(__char) && !(__char)) \
41 __retval = __memscan_zero(__addr, __size); \
43 __retval = __memscan_generic(__addr, (__char), __size); \
48 #define __HAVE_ARCH_MEMCMP
52 #define __HAVE_ARCH_STRLEN
55 #define __HAVE_ARCH_STRNCMP