From 83af58f8068ea3f7b3c537c37a30887bfa585069 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Wed, 6 Feb 2019 23:21:10 +0100 Subject: parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat Add performance-optimized versions of some string functions. Signed-off-by: Helge Deller Tested-by: Sven Schnelle --- arch/parisc/include/asm/string.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'arch/parisc/include') diff --git a/arch/parisc/include/asm/string.h b/arch/parisc/include/asm/string.h index f6e1132f4e35..4a0c9dbd62fd 100644 --- a/arch/parisc/include/asm/string.h +++ b/arch/parisc/include/asm/string.h @@ -8,4 +8,19 @@ extern void * memset(void *, int, size_t); #define __HAVE_ARCH_MEMCPY void * memcpy(void * dest,const void *src,size_t count); +#define __HAVE_ARCH_STRLEN +extern size_t strlen(const char *s); + +#define __HAVE_ARCH_STRCPY +extern char *strcpy(char *dest, const char *src); + +#define __HAVE_ARCH_STRNCPY +extern char *strncpy(char *dest, const char *src, size_t count); + +#define __HAVE_ARCH_STRCAT +extern char *strcat(char *dest, const char *src); + +#define __HAVE_ARCH_MEMSET +extern void *memset(void *, int, size_t); + #endif -- cgit v1.2.1