x86: Fix compilation bug in kprobes' twobyte_is_boostable
[linux-btrfs-devel.git] / arch / arm / include / asm / string.h
blobcf4f3aad0fc1c2154c6cf3839ff21bb1c46d6499
1 #ifndef __ASM_ARM_STRING_H
2 #define __ASM_ARM_STRING_H
4 /*
5 * We don't do inline string functions, since the
6 * optimised inline asm versions are not small.
7 */
9 #define __HAVE_ARCH_STRRCHR
10 extern char * strrchr(const char * s, int c);
12 #define __HAVE_ARCH_STRCHR
13 extern char * strchr(const char * s, int c);
15 #define __HAVE_ARCH_MEMCPY
16 extern void * memcpy(void *, const void *, __kernel_size_t);
18 #define __HAVE_ARCH_MEMMOVE
19 extern void * memmove(void *, const void *, __kernel_size_t);
21 #define __HAVE_ARCH_MEMCHR
22 extern void * memchr(const void *, int, __kernel_size_t);
24 #define __HAVE_ARCH_MEMSET
25 extern void * memset(void *, int, __kernel_size_t);
27 extern void __memzero(void *ptr, __kernel_size_t n);
29 #define memset(p,v,n) \
30 ({ \
31 void *__p = (p); size_t __n = n; \
32 if ((__n) != 0) { \
33 if (__builtin_constant_p((v)) && (v) == 0) \
34 __memzero((__p),(__n)); \
35 else \
36 memset((__p),(v),(__n)); \
37 } \
38 (__p); \
41 #endif