GuanXuetao | 87c1a3f | 2011-01-15 18:13:50 +0800 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/unicore32/include/asm/string.h |
| 3 | * |
| 4 | * Code specific to PKUnity SoC and UniCore ISA |
| 5 | * |
| 6 | * Copyright (C) 2001-2010 GUAN Xue-tao |
| 7 | * |
| 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. |
| 11 | */ |
| 12 | #ifndef __UNICORE_STRING_H__ |
| 13 | #define __UNICORE_STRING_H__ |
| 14 | |
| 15 | /* |
| 16 | * We don't do inline string functions, since the |
| 17 | * optimised inline asm versions are not small. |
| 18 | */ |
| 19 | |
| 20 | #define __HAVE_ARCH_STRRCHR |
| 21 | extern char *strrchr(const char *s, int c); |
| 22 | |
| 23 | #define __HAVE_ARCH_STRCHR |
| 24 | extern char *strchr(const char *s, int c); |
| 25 | |
| 26 | #define __HAVE_ARCH_MEMCPY |
| 27 | extern void *memcpy(void *, const void *, __kernel_size_t); |
| 28 | |
| 29 | #define __HAVE_ARCH_MEMMOVE |
| 30 | extern void *memmove(void *, const void *, __kernel_size_t); |
| 31 | |
| 32 | #define __HAVE_ARCH_MEMCHR |
| 33 | extern void *memchr(const void *, int, __kernel_size_t); |
| 34 | |
| 35 | #define __HAVE_ARCH_MEMSET |
| 36 | extern void *memset(void *, int, __kernel_size_t); |
| 37 | |
| 38 | #endif |