xref: /openbmc/u-boot/arch/x86/include/asm/string.h (revision e35171e9)
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 #ifdef CONFIG_X86_64
18 
19 #undef __HAVE_ARCH_MEMCPY
20 extern void *memcpy(void *, const void *, __kernel_size_t);
21 
22 #undef __HAVE_ARCH_MEMMOVE
23 extern void *memmove(void *, const void *, __kernel_size_t);
24 
25 #undef __HAVE_ARCH_MEMSET
26 extern void *memset(void *, int, __kernel_size_t);
27 
28 #else
29 
30 #define __HAVE_ARCH_MEMCPY
31 extern void *memcpy(void *, const void *, __kernel_size_t);
32 
33 #define __HAVE_ARCH_MEMMOVE
34 extern void *memmove(void *, const void *, __kernel_size_t);
35 
36 #define __HAVE_ARCH_MEMSET
37 extern void *memset(void *, int, __kernel_size_t);
38 
39 #endif /* CONFIG_X86_64 */
40 
41 #undef __HAVE_ARCH_MEMCHR
42 extern void *memchr(const void *, int, __kernel_size_t);
43 
44 #undef __HAVE_ARCH_MEMZERO
45 extern void memzero(void *ptr, __kernel_size_t n);
46 
47 #endif
48