Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
0004  *
0005  * vineetg: May 2011
0006  *  -We had half-optimised memset/memcpy, got better versions of those
0007  *  -Added memcmp, strchr, strcpy, strcmp, strlen
0008  *
0009  * Amit Bhor: Codito Technologies 2004
0010  */
0011 
0012 #ifndef _ASM_ARC_STRING_H
0013 #define _ASM_ARC_STRING_H
0014 
0015 #include <linux/types.h>
0016 
0017 #define __HAVE_ARCH_MEMSET
0018 #define __HAVE_ARCH_MEMCPY
0019 #define __HAVE_ARCH_MEMCMP
0020 #define __HAVE_ARCH_STRCHR
0021 #define __HAVE_ARCH_STRCPY
0022 #define __HAVE_ARCH_STRCMP
0023 #define __HAVE_ARCH_STRLEN
0024 
0025 extern void *memset(void *ptr, int, __kernel_size_t);
0026 extern void *memcpy(void *, const void *, __kernel_size_t);
0027 extern void memzero(void *ptr, __kernel_size_t n);
0028 extern int memcmp(const void *, const void *, __kernel_size_t);
0029 extern char *strchr(const char *s, int c);
0030 extern char *strcpy(char *dest, const char *src);
0031 extern int strcmp(const char *cs, const char *ct);
0032 extern __kernel_size_t strlen(const char *);
0033 
0034 #endif /* _ASM_ARC_STRING_H */