GNU Linux-libre 5.4.274-gnu1
[releases.git] / arch / unicore32 / include / asm / string.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * linux/arch/unicore32/include/asm/string.h
4  *
5  * Code specific to PKUnity SoC and UniCore ISA
6  *
7  * Copyright (C) 2001-2010 GUAN Xue-tao
8  */
9 #ifndef __UNICORE_STRING_H__
10 #define __UNICORE_STRING_H__
11
12 /*
13  * We don't do inline string functions, since the
14  * optimised inline asm versions are not small.
15  */
16
17 #define __HAVE_ARCH_STRRCHR
18 extern char *strrchr(const char *s, int c);
19
20 #define __HAVE_ARCH_STRCHR
21 extern char *strchr(const char *s, int c);
22
23 #define __HAVE_ARCH_MEMCPY
24 extern void *memcpy(void *, const void *, __kernel_size_t);
25
26 #define __HAVE_ARCH_MEMMOVE
27 extern void *memmove(void *, const void *, __kernel_size_t);
28
29 #define __HAVE_ARCH_MEMCHR
30 extern void *memchr(const void *, int, __kernel_size_t);
31
32 #define __HAVE_ARCH_MEMSET
33 extern void *memset(void *, int, __kernel_size_t);
34
35 #endif