diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-18 12:24:00 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-18 15:45:00 +0200 |
commit | 270c2673a1caf00bcc47f2ce571fbbb3bade1bb1 (patch) | |
tree | 7fa9aa7ee94bf988159284bd2042077ae9b45623 /include | |
parent | 66457f42e4efb0490b32337dd7fdacea12ac0e91 (diff) | |
download | barebox-270c2673a1caf00bcc47f2ce571fbbb3bade1bb1.tar.gz barebox-270c2673a1caf00bcc47f2ce571fbbb3bade1bb1.tar.xz |
arm: implement optimized string functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/string.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/asm-arm/string.h b/include/asm-arm/string.h index 2a45646ad1..435647abda 100644 --- a/include/asm-arm/string.h +++ b/include/asm-arm/string.h @@ -1,9 +1,13 @@ #ifndef __ASM_ARM_STRING_H #define __ASM_ARM_STRING_H -/* - * We don't do inline string functions, since the - * optimised inline asm versions are not small. - */ +#ifdef CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS + +#define __HAVE_ARCH_MEMCPY +extern void *memcpy(void *, const void *, __kernel_size_t); +#define __HAVE_ARCH_MEMSET +extern void *memset(void *, int, __kernel_size_t); + +#endif #endif |