^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * vineetg: May 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * -We had half-optimised memset/memcpy, got better versions of those
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * -Added memcmp, strchr, strcpy, strcmp, strlen
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * Amit Bhor: Codito Technologies 2004
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifndef _ASM_ARC_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define _ASM_ARC_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define __HAVE_ARCH_MEMSET
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define __HAVE_ARCH_MEMCPY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define __HAVE_ARCH_MEMCMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define __HAVE_ARCH_STRCHR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define __HAVE_ARCH_STRCPY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define __HAVE_ARCH_STRCMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define __HAVE_ARCH_STRLEN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern void *memset(void *ptr, int, __kernel_size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern void *memcpy(void *, const void *, __kernel_size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern void memzero(void *ptr, __kernel_size_t n);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern int memcmp(const void *, const void *, __kernel_size_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) extern char *strchr(const char *s, int c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern char *strcpy(char *dest, const char *src);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern int strcmp(const char *cs, const char *ct);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) extern __kernel_size_t strlen(const char *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif /* _ASM_ARC_STRING_H */