2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
9 * -We had half-optimised memset/memcpy, got better versions of those
10 * -Added memcmp, strchr, strcpy, strcmp, strlen
12 * Amit Bhor: Codito Technologies 2004
15 #ifndef _ASM_ARC_STRING_H
16 #define _ASM_ARC_STRING_H
18 #include <linux/types.h>
22 #define __HAVE_ARCH_MEMSET
23 #define __HAVE_ARCH_MEMCPY
24 #define __HAVE_ARCH_MEMCMP
25 #define __HAVE_ARCH_STRCHR
26 #define __HAVE_ARCH_STRCPY
27 #define __HAVE_ARCH_STRCMP
28 #define __HAVE_ARCH_STRLEN
30 extern void *memset(void *ptr
, int, __kernel_size_t
);
31 extern void *memcpy(void *, const void *, __kernel_size_t
);
32 extern void memzero(void *ptr
, __kernel_size_t n
);
33 extern int memcmp(const void *, const void *, __kernel_size_t
);
34 extern char *strchr(const char *s
, int c
);
35 extern char *strcpy(char *dest
, const char *src
);
36 extern int strcmp(const char *cs
, const char *ct
);
37 extern __kernel_size_t
strlen(const char *);
39 #endif /* __KERNEL__ */
40 #endif /* _ASM_ARC_STRING_H */