2 * linux/arch/unicore32/include/asm/string.h
4 * Code specific to PKUnity SoC and UniCore ISA
6 * Copyright (C) 2001-2010 GUAN Xue-tao
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 #ifndef __UNICORE_STRING_H__
13 #define __UNICORE_STRING_H__
16 * We don't do inline string functions, since the
17 * optimised inline asm versions are not small.
20 #define __HAVE_ARCH_STRRCHR
21 extern char *strrchr(const char *s
, int c
);
23 #define __HAVE_ARCH_STRCHR
24 extern char *strchr(const char *s
, int c
);
26 #define __HAVE_ARCH_MEMCPY
27 extern void *memcpy(void *, const void *, __kernel_size_t
);
29 #define __HAVE_ARCH_MEMMOVE
30 extern void *memmove(void *, const void *, __kernel_size_t
);
32 #define __HAVE_ARCH_MEMCHR
33 extern void *memchr(const void *, int, __kernel_size_t
);
35 #define __HAVE_ARCH_MEMSET
36 extern void *memset(void *, int, __kernel_size_t
);