diff options
author | zhichang.yuan <zhichang.yuan@linaro.org> | 2014-04-28 07:11:32 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-05-23 16:07:57 +0200 |
commit | d875c9b3724083cd2629cd8507e424cd3716cd28 (patch) | |
tree | 284326e94a19aee3ca39ac90c04fc297221d877a /arch/arm64/include/asm/string.h | |
parent | arm64: lib: Implement optimized memset routine (diff) | |
download | linux-d875c9b3724083cd2629cd8507e424cd3716cd28.tar.xz linux-d875c9b3724083cd2629cd8507e424cd3716cd28.zip |
arm64: lib: Implement optimized memcmp routine
This patch, based on Linaro's Cortex Strings library, adds
an assembly optimized memcmp() function.
Signed-off-by: Zhichang Yuan <zhichang.yuan@linaro.org>
Signed-off-by: Deepak Saxena <dsaxena@linaro.org>
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/string.h b/arch/arm64/include/asm/string.h index 3ee8b303d9a9..3a43305cda71 100644 --- a/arch/arm64/include/asm/string.h +++ b/arch/arm64/include/asm/string.h @@ -34,4 +34,7 @@ extern void *memchr(const void *, int, __kernel_size_t); #define __HAVE_ARCH_MEMSET extern void *memset(void *, int, __kernel_size_t); +#define __HAVE_ARCH_MEMCMP +extern int memcmp(const void *, const void *, size_t); + #endif |