wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 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 | */ |
Graeme Russ | 2fe2a97 | 2008-09-07 07:08:42 +1000 | [diff] [blame] | 8 | #undef __HAVE_ARCH_STRNCPY |
| 9 | extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n); |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 10 | |
wdenk | 67ff36c | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 11 | #undef __HAVE_ARCH_STRRCHR |
Heinrich Schuchardt | 7245476 | 2019-01-23 02:42:39 +0100 | [diff] [blame] | 12 | extern char *strrchr(const char *s, int c); |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 13 | |
wdenk | 67ff36c | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 14 | #undef __HAVE_ARCH_STRCHR |
Heinrich Schuchardt | 7245476 | 2019-01-23 02:42:39 +0100 | [diff] [blame] | 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 |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 29 | |
Graeme Russ | 1dd0b70 | 2011-12-27 22:46:39 +1100 | [diff] [blame] | 30 | #define __HAVE_ARCH_MEMCPY |
Heinrich Schuchardt | 7245476 | 2019-01-23 02:42:39 +0100 | [diff] [blame] | 31 | extern void *memcpy(void *, const void *, __kernel_size_t); |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 32 | |
Simon Glass | 889111c | 2016-10-05 20:42:10 -0600 | [diff] [blame] | 33 | #define __HAVE_ARCH_MEMMOVE |
Heinrich Schuchardt | 7245476 | 2019-01-23 02:42:39 +0100 | [diff] [blame] | 34 | extern void *memmove(void *, const void *, __kernel_size_t); |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 35 | |
Gabe Black | 0e49905 | 2011-11-14 14:47:18 +0000 | [diff] [blame] | 36 | #define __HAVE_ARCH_MEMSET |
Heinrich Schuchardt | 7245476 | 2019-01-23 02:42:39 +0100 | [diff] [blame] | 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); |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 43 | |
wdenk | 67ff36c | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 44 | #undef __HAVE_ARCH_MEMZERO |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 45 | extern void memzero(void *ptr, __kernel_size_t n); |
| 46 | |
| 47 | #endif |