Go to the documentation of this file.
9 #ifndef __SPARC_STRING_H__
10 #define __SPARC_STRING_H__
20 #ifndef EXPORT_SYMTAB_STROPS
23 #define __HAVE_ARCH_MEMMOVE
25 #define memmove(_to, _from, _n) \
28 __memmove(_t, (_from), (_n)); \
32 #define __HAVE_ARCH_MEMCPY
33 #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
35 #define __HAVE_ARCH_MEMSET
36 #define memset(s, c, count) __builtin_memset(s, c, count)
38 #define __HAVE_ARCH_MEMSCAN
41 #define memscan(__arg0, __char, __arg2) \
43 extern void *__memscan_zero(void *, size_t); \
44 extern void *__memscan_generic(void *, int, size_t); \
45 void *__retval, *__addr = (__arg0); \
46 size_t __size = (__arg2); \
48 if(__builtin_constant_p(__char) && !(__char)) \
49 __retval = __memscan_zero(__addr, __size); \
51 __retval = __memscan_generic(__addr, (__char), __size); \
56 #define __HAVE_ARCH_MEMCMP
60 #define __HAVE_ARCH_STRLEN
63 #define __HAVE_ARCH_STRNCMP