From d857a1e253498feb231173218df26f5562c70f09 Mon Sep 17 00:00:00 2001 From: Olof Kindgren Date: Fri, 6 Feb 2015 13:41:51 +0100 Subject: openrisc: Add optimized memset This adds a hand-optimized assembler version of memset and sets __HAVE_ARCH_MEMSET to use this version instead of the generic C routine Signed-off-by: Olof Kindgren Signed-off-by: Stafford Horne --- arch/openrisc/include/asm/string.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 arch/openrisc/include/asm/string.h (limited to 'arch/openrisc/include/asm/string.h') diff --git a/arch/openrisc/include/asm/string.h b/arch/openrisc/include/asm/string.h new file mode 100644 index 000000000000..33470d4d6948 --- /dev/null +++ b/arch/openrisc/include/asm/string.h @@ -0,0 +1,7 @@ +#ifndef __ASM_OPENRISC_STRING_H +#define __ASM_OPENRISC_STRING_H + +#define __HAVE_ARCH_MEMSET +extern void *memset(void *s, int c, __kernel_size_t n); + +#endif /* __ASM_OPENRISC_STRING_H */ -- cgit v1.2.3