diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2013-03-21 12:23:43 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-03-21 13:39:30 -0400 |
commit | 2b8cac814cd5a0a305d62dcd1d589faccb705a4d (patch) | |
tree | 62340ae9d079bdf28747eff9c5a9e12530f52895 /arch/arm64/include/asm | |
parent | 4a8992271c843cb5bcd3321bf6a02eb251280b1d (diff) |
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')
-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 @@ | |||
16 | #ifndef __ASM_STRING_H | 16 | #ifndef __ASM_STRING_H |
17 | #define __ASM_STRING_H | 17 | #define __ASM_STRING_H |
18 | 18 | ||
19 | #define __HAVE_ARCH_STRRCHR | ||
20 | extern char *strrchr(const char *, int c); | ||
21 | |||
22 | #define __HAVE_ARCH_STRCHR | ||
23 | extern char *strchr(const char *, int c); | ||
24 | |||
19 | #define __HAVE_ARCH_MEMCPY | 25 | #define __HAVE_ARCH_MEMCPY |
20 | extern void *memcpy(void *, const void *, __kernel_size_t); | 26 | extern void *memcpy(void *, const void *, __kernel_size_t); |
21 | 27 | ||