18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * vineetg: May 2011 68c2ecf20Sopenharmony_ci * -We had half-optimised memset/memcpy, got better versions of those 78c2ecf20Sopenharmony_ci * -Added memcmp, strchr, strcpy, strcmp, strlen 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Amit Bhor: Codito Technologies 2004 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifndef _ASM_ARC_STRING_H 138c2ecf20Sopenharmony_ci#define _ASM_ARC_STRING_H 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#include <linux/types.h> 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#define __HAVE_ARCH_MEMSET 188c2ecf20Sopenharmony_ci#define __HAVE_ARCH_MEMCPY 198c2ecf20Sopenharmony_ci#define __HAVE_ARCH_MEMCMP 208c2ecf20Sopenharmony_ci#define __HAVE_ARCH_STRCHR 218c2ecf20Sopenharmony_ci#define __HAVE_ARCH_STRCPY 228c2ecf20Sopenharmony_ci#define __HAVE_ARCH_STRCMP 238c2ecf20Sopenharmony_ci#define __HAVE_ARCH_STRLEN 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciextern void *memset(void *ptr, int, __kernel_size_t); 268c2ecf20Sopenharmony_ciextern void *memcpy(void *, const void *, __kernel_size_t); 278c2ecf20Sopenharmony_ciextern void memzero(void *ptr, __kernel_size_t n); 288c2ecf20Sopenharmony_ciextern int memcmp(const void *, const void *, __kernel_size_t); 298c2ecf20Sopenharmony_ciextern char *strchr(const char *s, int c); 308c2ecf20Sopenharmony_ciextern char *strcpy(char *dest, const char *src); 318c2ecf20Sopenharmony_ciextern int strcmp(const char *cs, const char *ct); 328c2ecf20Sopenharmony_ciextern __kernel_size_t strlen(const char *); 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif /* _ASM_ARC_STRING_H */ 35