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:

committed by
Stafford Horne

parent
e29d11c699
commit
d857a1e253
7
arch/openrisc/include/asm/string.h
Normal file
7
arch/openrisc/include/asm/string.h
Normal 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 */
|
Reference in New Issue
Block a user