This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Support __memmove_ssse3_rep when SHARED isn't defined
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 19 Jan 2010 12:04:25 -0800
- Subject: PATCH: Support __memmove_ssse3_rep when SHARED isn't defined
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
When I submitted SSSE3 optimized memcpy, I left out __memmove_ssse3_rep
support when SHARED isn't defined. This patch fixes it. Tested it on
Core i7.
H.J.
---
2010-01-19 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/i386/i686/multiarch/memmove.S: Also check
bit_Fast_Rep_String when SHARED isn't defined.
diff --git a/sysdeps/i386/i686/multiarch/memmove.S b/sysdeps/i386/i686/multiarch/memmove.S
index d3d8d36..e0529c0 100644
--- a/sysdeps/i386/i686/multiarch/memmove.S
+++ b/sysdeps/i386/i686/multiarch/memmove.S
@@ -74,6 +74,9 @@ ENTRY(memmove)
testl $bit_SSSE3, CPUID_OFFSET+index_SSSE3+__cpu_features
jz 2f
leal __memmove_ssse3, %eax
+ testl $bit_Fast_Rep_String, FEATURE_OFFSET+index_Fast_Rep_String+__cpu_features
+ jz 2f
+ leal __memmove_ssse3_rep, %eax
2: ret
END(memmove)