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>
This commit is contained in:
Olof Kindgren
2015-02-06 13:41:51 +01:00
committed by Stafford Horne
parent e29d11c699
commit d857a1e253
4 changed files with 107 additions and 1 deletions

View File

@@ -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 */