about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/init-arch.h
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2009-06-22 20:38:41 -0700
committerUlrich Drepper <drepper@redhat.com>2009-06-22 20:38:41 -0700
commit772f4e6a1be0e3fbd8c4e9edacf1887269f598dc (patch)
tree50b511859f2b331548f08454b5dfc70f61a698ca /sysdeps/x86_64/multiarch/init-arch.h
parent9618c7c20e1dac85834bd17f4591ea80f88b758d (diff)
downloadglibc-772f4e6a1be0e3fbd8c4e9edacf1887269f598dc.tar.gz
glibc-772f4e6a1be0e3fbd8c4e9edacf1887269f598dc.tar.xz
glibc-772f4e6a1be0e3fbd8c4e9edacf1887269f598dc.zip
Add SSE4.2 support for strcmp and strncmp on x86-64.
Diffstat (limited to 'sysdeps/x86_64/multiarch/init-arch.h')
-rw-r--r--sysdeps/x86_64/multiarch/init-arch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/init-arch.h b/sysdeps/x86_64/multiarch/init-arch.h
index f160ba2a94..5c4892de38 100644
--- a/sysdeps/x86_64/multiarch/init-arch.h
+++ b/sysdeps/x86_64/multiarch/init-arch.h
@@ -56,3 +56,6 @@ extern void __init_cpu_features (void) attribute_hidden;
 
 #define HAS_POPCOUNT \
   ((__cpu_features.cpuid[COMMON_CPUID_INDEX_1].ecx & (1 << 23)) != 0)
+
+#define HAS_SSE4_2 \
+  ((__cpu_features.cpuid[COMMON_CPUID_INDEX_1].ecx & (1 << 20)) != 0)