summaryrefslogtreecommitdiff
path: root/arch/openrisc/include/asm
diff options
context:
space:
mode:
authorOlof Kindgren <olof.kindgren@gmail.com>2015-02-06 13:41:51 +0100
committerStafford Horne <shorne@gmail.com>2017-02-25 04:14:35 +0900
commitd857a1e253498feb231173218df26f5562c70f09 (patch)
tree4d7c67c6d2c648d52a83f68e5ebaa3882c791073 /arch/openrisc/include/asm
parente29d11c6991d078bf2011f25dc8c19a2f38c4c8e (diff)
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 <olof.kindgren@gmail.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc/include/asm')
-rw-r--r--arch/openrisc/include/asm/string.h7
1 files changed, 7 insertions, 0 deletions
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 */