diff options
author | Helge Deller <deller@gmx.de> | 2019-02-07 01:21:10 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-08-03 09:56:57 +0300 |
commit | 83af58f8068ea3f7b3c537c37a30887bfa585069 (patch) | |
tree | ce1b09ba9adda2675dd7486bc53e4a2fb79f6853 /arch/parisc/include/asm/string.h | |
parent | ec4d396b635070e0caf5888d58cb9eedc8dd73d9 (diff) | |
download | linux-83af58f8068ea3f7b3c537c37a30887bfa585069.tar.xz |
parisc: Add assembly implementations for memset, strlen, strcpy, strncpy and strcat
Add performance-optimized versions of some string functions.
Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Sven Schnelle <svens@stackframe.org>
Diffstat (limited to 'arch/parisc/include/asm/string.h')
-rw-r--r-- | arch/parisc/include/asm/string.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 |