diff options
| author | Jesper Nilsson <jesper.nilsson@axis.com> | 2009-06-10 09:06:55 -0400 |
|---|---|---|
| committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2009-06-10 09:21:03 -0400 |
| commit | 7f2ff23db1de53ea8695bb4a7c1cfab88886e3fd (patch) | |
| tree | 3e3b4d823322052d83fc2e80b755cafdc50219dd /arch/cris/include | |
| parent | b0903ee8e4853eea35cb24cfb4dda1b60c7948dc (diff) | |
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')
| -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); | |||
| 11 | #define __HAVE_ARCH_MEMSET | 11 | #define __HAVE_ARCH_MEMSET |
| 12 | extern void *memset(void *, int, size_t); | 12 | extern void *memset(void *, int, size_t); |
| 13 | 13 | ||
| 14 | #ifdef CONFIG_ETRAX_ARCH_V32 | ||
| 15 | /* For v32 we provide strcmp. */ | ||
| 16 | #define __HAVE_ARCH_STRCMP | ||
| 17 | extern int strcmp(const char *s1, const char *s2); | ||
| 18 | #endif | ||
| 19 | |||
| 14 | #endif | 20 | #endif |
