diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2009-06-10 15:06:55 +0200 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2009-06-10 15:21:03 +0200 |
commit | 7f2ff23db1de53ea8695bb4a7c1cfab88886e3fd (patch) | |
tree | 3e3b4d823322052d83fc2e80b755cafdc50219dd /arch/cris/include/asm/string.h | |
parent | CRIS: assignment/is equal confusion (diff) | |
download | linux-7f2ff23db1de53ea8695bb4a7c1cfab88886e3fd.tar.xz linux-7f2ff23db1de53ea8695bb4a7c1cfab88886e3fd.zip |
CRISv32: Add arch optimized strcmp.
Add an optimized strcmp for CRISv32. This improves strcmp performance
with about 25% when comparing a 55 character string with itself.
Signed-off-by: Edgar Iglesias <edgar@axis.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/include/asm/string.h')
-rw-r--r-- | arch/cris/include/asm/string.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/cris/include/asm/string.h b/arch/cris/include/asm/string.h index 691190e99a27..d5db39f9eea1 100644 --- a/arch/cris/include/asm/string.h +++ b/arch/cris/include/asm/string.h @@ -11,4 +11,10 @@ extern void *memcpy(void *, const void *, size_t); #define __HAVE_ARCH_MEMSET extern void *memset(void *, int, size_t); +#ifdef CONFIG_ETRAX_ARCH_V32 +/* For v32 we provide strcmp. */ +#define __HAVE_ARCH_STRCMP +extern int strcmp(const char *s1, const char *s2); +#endif + #endif |