Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / h8300 / include / asm / string.h
blobca5034897d87267d851d0b306916743d911c44ab
1 #ifndef _H8300_STRING_H_
2 #define _H8300_STRING_H_
4 #ifdef __KERNEL__ /* only set these up for kernel code */
6 #include <asm/setup.h>
7 #include <asm/page.h>
9 #define __HAVE_ARCH_MEMSET
10 extern void * memset(void * s, int c, size_t count);
12 #define __HAVE_ARCH_MEMCPY
13 extern void * memcpy(void *d, const void *s, size_t count);
15 #else /* KERNEL */
18 * let user libraries deal with these,
19 * IMHO the kernel has no place defining these functions for user apps
22 #define __HAVE_ARCH_STRCPY 1
23 #define __HAVE_ARCH_STRNCPY 1
24 #define __HAVE_ARCH_STRCAT 1
25 #define __HAVE_ARCH_STRNCAT 1
26 #define __HAVE_ARCH_STRCMP 1
27 #define __HAVE_ARCH_STRNCMP 1
28 #define __HAVE_ARCH_STRNICMP 1
29 #define __HAVE_ARCH_STRCHR 1
30 #define __HAVE_ARCH_STRRCHR 1
31 #define __HAVE_ARCH_STRSTR 1
32 #define __HAVE_ARCH_STRLEN 1
33 #define __HAVE_ARCH_STRNLEN 1
34 #define __HAVE_ARCH_MEMSET 1
35 #define __HAVE_ARCH_MEMCPY 1
36 #define __HAVE_ARCH_MEMMOVE 1
37 #define __HAVE_ARCH_MEMSCAN 1
38 #define __HAVE_ARCH_MEMCMP 1
39 #define __HAVE_ARCH_MEMCHR 1
40 #define __HAVE_ARCH_STRTOK 1
42 #endif /* KERNEL */
44 #endif /* _M68K_STRING_H_ */