xref: /openbmc/u-boot/arch/x86/include/asm/string.h (revision af2a4093)
1 #ifndef __ASM_I386_STRING_H
2 #define __ASM_I386_STRING_H
3 
4 /*
5  * We don't do inline string functions, since the
6  * optimised inline asm versions are not small.
7  */
8 #undef __HAVE_ARCH_STRNCPY
9 extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
10 
11 #undef __HAVE_ARCH_STRRCHR
12 extern char * strrchr(const char * s, int c);
13 
14 #undef __HAVE_ARCH_STRCHR
15 extern char * strchr(const char * s, int c);
16 
17 #define __HAVE_ARCH_MEMCPY
18 extern void * memcpy(void *, const void *, __kernel_size_t);
19 
20 #undef __HAVE_ARCH_MEMMOVE
21 extern void * memmove(void *, const void *, __kernel_size_t);
22 
23 #undef __HAVE_ARCH_MEMCHR
24 extern void * memchr(const void *, int, __kernel_size_t);
25 
26 #define __HAVE_ARCH_MEMSET
27 extern void * memset(void *, int, __kernel_size_t);
28 
29 #undef __HAVE_ARCH_MEMZERO
30 extern void memzero(void *ptr, __kernel_size_t n);
31 
32 #endif
33