summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/string.h
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2013-03-21 16:23:43 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2013-03-21 17:39:30 +0000
commit2b8cac814cd5a0a305d62dcd1d589faccb705a4d (patch)
tree62340ae9d079bdf28747eff9c5a9e12530f52895 /arch/arm64/include/asm/string.h
parent4a8992271c843cb5bcd3321bf6a02eb251280b1d (diff)
downloadblackbird-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.h6
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);
OpenPOWER on IntegriCloud