blob: c15b264a5c08c4d5b62bfa67037205dd63b844da [file] [log] [blame]
wdenk2262cfe2002-11-18 00:14:45 +00001#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 Russ3ef96de2008-09-07 07:08:42 +10008#undef __HAVE_ARCH_STRNCPY
9extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
wdenk2262cfe2002-11-18 00:14:45 +000010
wdenkb2184c32002-11-19 23:01:07 +000011#undef __HAVE_ARCH_STRRCHR
Heinrich Schuchardt6b596072019-01-23 02:42:39 +010012extern char *strrchr(const char *s, int c);
wdenk2262cfe2002-11-18 00:14:45 +000013
wdenkb2184c32002-11-19 23:01:07 +000014#undef __HAVE_ARCH_STRCHR
Heinrich Schuchardt6b596072019-01-23 02:42:39 +010015extern char *strchr(const char *s, int c);
16
17#ifdef CONFIG_X86_64
18
19#undef __HAVE_ARCH_MEMCPY
20extern void *memcpy(void *, const void *, __kernel_size_t);
21
22#undef __HAVE_ARCH_MEMMOVE
23extern void *memmove(void *, const void *, __kernel_size_t);
24
25#undef __HAVE_ARCH_MEMSET
26extern void *memset(void *, int, __kernel_size_t);
27
28#else
wdenk2262cfe2002-11-18 00:14:45 +000029
Graeme Russb2c2a032011-12-27 22:46:39 +110030#define __HAVE_ARCH_MEMCPY
Heinrich Schuchardt6b596072019-01-23 02:42:39 +010031extern void *memcpy(void *, const void *, __kernel_size_t);
wdenk2262cfe2002-11-18 00:14:45 +000032
Simon Glassa5b87222016-10-05 20:42:10 -060033#define __HAVE_ARCH_MEMMOVE
Heinrich Schuchardt6b596072019-01-23 02:42:39 +010034extern void *memmove(void *, const void *, __kernel_size_t);
wdenk2262cfe2002-11-18 00:14:45 +000035
Gabe Blackdbaef6e2011-11-14 14:47:18 +000036#define __HAVE_ARCH_MEMSET
Heinrich Schuchardt6b596072019-01-23 02:42:39 +010037extern void *memset(void *, int, __kernel_size_t);
38
39#endif /* CONFIG_X86_64 */
40
41#undef __HAVE_ARCH_MEMCHR
42extern void *memchr(const void *, int, __kernel_size_t);
wdenk2262cfe2002-11-18 00:14:45 +000043
wdenkb2184c32002-11-19 23:01:07 +000044#undef __HAVE_ARCH_MEMZERO
wdenk2262cfe2002-11-18 00:14:45 +000045extern void memzero(void *ptr, __kernel_size_t n);
46
47#endif