diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2013-03-21 16:23:43 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-03-21 17:39:30 +0000 |
commit | 2b8cac814cd5a0a305d62dcd1d589faccb705a4d (patch) | |
tree | 62340ae9d079bdf28747eff9c5a9e12530f52895 /arch/arm64/include/asm/string.h | |
parent | 4a8992271c843cb5bcd3321bf6a02eb251280b1d (diff) | |
download | blackbird-op-linux-2b8cac814cd5a0a305d62dcd1d589faccb705a4d.tar.gz blackbird-op-linux-2b8cac814cd5a0a305d62dcd1d589faccb705a4d.zip |
arm64: klib: Optimised string functions
This patch introduces AArch64-specific string functions (strchr,
strrchr).
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/string.h')
-rw-r--r-- | arch/arm64/include/asm/string.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/string.h b/arch/arm64/include/asm/string.h index be8a644f306a..3ee8b303d9a9 100644 --- a/arch/arm64/include/asm/string.h +++ b/arch/arm64/include/asm/string.h @@ -16,6 +16,12 @@ #ifndef __ASM_STRING_H #define __ASM_STRING_H +#define __HAVE_ARCH_STRRCHR +extern char *strrchr(const char *, int c); + +#define __HAVE_ARCH_STRCHR +extern char *strchr(const char *, int c); + #define __HAVE_ARCH_MEMCPY extern void *memcpy(void *, const void *, __kernel_size_t); |