about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/memset.S
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-10-11 13:58:16 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-10-11 13:58:16 -0700
commit9a387d1f787f764474943294024b02258f14e80a (patch)
tree3159228b99a2195dd1347a673a08efefce787ad3 /sysdeps/x86_64/multiarch/memset.S
parent54a417345edca0015e70e8b360b7f83ade5a7507 (diff)
downloadglibc-9a387d1f787f764474943294024b02258f14e80a.tar.gz
glibc-9a387d1f787f764474943294024b02258f14e80a.tar.xz
glibc-9a387d1f787f764474943294024b02258f14e80a.zip
Use IFUNC memmove/memset in x86-64 bcopy/bzero
Also add separate tests for bcopy and bzero.
Diffstat (limited to 'sysdeps/x86_64/multiarch/memset.S')
-rw-r--r--sysdeps/x86_64/multiarch/memset.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/memset.S b/sysdeps/x86_64/multiarch/memset.S
index 1a7fa2dc79..10f00bf9e9 100644
--- a/sysdeps/x86_64/multiarch/memset.S
+++ b/sysdeps/x86_64/multiarch/memset.S
@@ -1,5 +1,5 @@
 /* Multiple versions of memset
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,6 +33,11 @@ ENTRY(memset)
 2:	ret
 END(memset)
 
+/* Define internal IFUNC memset for bzero.  */
+	.globl __libc_memset
+	.hidden __libc_memset
+	__libc_memset = memset
+
 # define USE_SSE2 1
 
 # undef ENTRY