1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/unicore32/include/asm/string.h
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
9 #ifndef __UNICORE_STRING_H__
10 #define __UNICORE_STRING_H__
13 * We don't do inline string functions, since the
14 * optimised inline asm versions are not small.
17 #define __HAVE_ARCH_STRRCHR
18 extern char *strrchr(const char *s
, int c
);
20 #define __HAVE_ARCH_STRCHR
21 extern char *strchr(const char *s
, int c
);
23 #define __HAVE_ARCH_MEMCPY
24 extern void *memcpy(void *, const void *, __kernel_size_t
);
26 #define __HAVE_ARCH_MEMMOVE
27 extern void *memmove(void *, const void *, __kernel_size_t
);
29 #define __HAVE_ARCH_MEMCHR
30 extern void *memchr(const void *, int, __kernel_size_t
);
32 #define __HAVE_ARCH_MEMSET
33 extern void *memset(void *, int, __kernel_size_t
);