summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/string.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-11-14 14:47:18 +0000
committerGraeme Russ <graeme.russ@gmail.com>2011-11-29 21:31:17 +1100
commitdbaef6ef33912a863f9fb550857028fb96e42c59 (patch)
tree255343e0720426f7e7cbbb678bc93af506aff74c /arch/x86/include/asm/string.h
parent60a9b6bfddbe1e3ae280fe5422ccd283bc31a591 (diff)
downloadblackbird-obmc-uboot-dbaef6ef33912a863f9fb550857028fb96e42c59.tar.gz
blackbird-obmc-uboot-dbaef6ef33912a863f9fb550857028fb96e42c59.zip
x86: Import the glibc memset implementation
The new implementation is about twice as fast as the old. This is from glibc-2.14, sysdeps/i386/memset.c. Signed-off-by: Gabe Black <gabeblack@chromium.org>
Diffstat (limited to 'arch/x86/include/asm/string.h')
-rw-r--r--arch/x86/include/asm/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/string.h b/arch/x86/include/asm/string.h
index 3643a79fdf..3aa6c1131b 100644
--- a/arch/x86/include/asm/string.h
+++ b/arch/x86/include/asm/string.h
@@ -23,7 +23,7 @@ extern void * memmove(void *, const void *, __kernel_size_t);
#undef __HAVE_ARCH_MEMCHR
extern void * memchr(const void *, int, __kernel_size_t);
-#undef __HAVE_ARCH_MEMSET
+#define __HAVE_ARCH_MEMSET
extern void * memset(void *, int, __kernel_size_t);
#undef __HAVE_ARCH_MEMZERO
OpenPOWER on IntegriCloud