about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/strchr.S
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2009-12-13 09:47:02 -0800
committerUlrich Drepper <drepper@redhat.com>2009-12-13 09:47:02 -0800
commit51ddd2c01e0636f713417f30379b876e85558f61 (patch)
tree1d9762899998ee78590cf88e81be1f7a4b014370 /sysdeps/x86_64/multiarch/strchr.S
parent9b2f1d4b58f192445db38d5bfe5de0eff2dc3b27 (diff)
downloadglibc-51ddd2c01e0636f713417f30379b876e85558f61.tar.gz
glibc-51ddd2c01e0636f713417f30379b876e85558f61.tar.xz
glibc-51ddd2c01e0636f713417f30379b876e85558f61.zip
Define bit_XXX and index_XXX.
This patch defines bit_XXX and index_XXX and use them to check processor
feature in assembly code.  It can prevent typos in processor feature
check.
Diffstat (limited to 'sysdeps/x86_64/multiarch/strchr.S')
-rw-r--r--sysdeps/x86_64/multiarch/strchr.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/multiarch/strchr.S b/sysdeps/x86_64/multiarch/strchr.S
index b35566d1a5..27eead9852 100644
--- a/sysdeps/x86_64/multiarch/strchr.S
+++ b/sysdeps/x86_64/multiarch/strchr.S
@@ -18,7 +18,7 @@
    02111-1307 USA.  */
 
 #include <sysdep.h>
-#include <ifunc-defines.h>
+#include <init-arch.h>
 
 
 /* Define multiple versions only for the definition in libc.  */
@@ -30,7 +30,7 @@ ENTRY(strchr)
 	jne	1f
 	call	__init_cpu_features
 1:	leaq	__strchr_sse2(%rip), %rax
-	testl	$(1<<20), __cpu_features+CPUID_OFFSET+COMMON_CPUID_INDEX_1*CPUID_SIZE+CPUID_ECX_OFFSET(%rip)
+	testl	$bit_SSE4_2, __cpu_features+CPUID_OFFSET+index_SSE4_2(%rip)
 	jz	2f
 	leaq	__strchr_sse42(%rip), %rax
 2:	ret