about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/init-arch.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-10-19 12:42:38 -0400
committerUlrich Drepper <drepper@gmail.com>2011-10-19 12:42:38 -0400
commitd9a4d2ab278ab50637e383b6174e9ec42db84327 (patch)
treec5107d9a43e560658bf3b65fcde55659d3292200 /sysdeps/x86_64/multiarch/init-arch.h
parent8f3b1ffefa61275315891770944bdbf5079e04ed (diff)
downloadglibc-d9a4d2ab278ab50637e383b6174e9ec42db84327.tar.gz
glibc-d9a4d2ab278ab50637e383b6174e9ec42db84327.tar.xz
glibc-d9a4d2ab278ab50637e383b6174e9ec42db84327.zip
Add optimized str{,n}casecmp for AVX on x86-64
Diffstat (limited to 'sysdeps/x86_64/multiarch/init-arch.h')
-rw-r--r--sysdeps/x86_64/multiarch/init-arch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/init-arch.h b/sysdeps/x86_64/multiarch/init-arch.h
index 6cfdbddc4e..e8d48c2456 100644
--- a/sysdeps/x86_64/multiarch/init-arch.h
+++ b/sysdeps/x86_64/multiarch/init-arch.h
@@ -1,5 +1,5 @@
 /* This file is part of the GNU C Library.
-   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -31,11 +31,13 @@
 # define bit_SSSE3	(1 << 9)
 # define bit_SSE4_1	(1 << 19)
 # define bit_SSE4_2	(1 << 20)
+# define bit_AVX	(1 << 28)
 
 # define index_SSE2	COMMON_CPUID_INDEX_1*CPUID_SIZE+CPUID_EDX_OFFSET
 # define index_SSSE3	COMMON_CPUID_INDEX_1*CPUID_SIZE+CPUID_ECX_OFFSET
 # define index_SSE4_1	COMMON_CPUID_INDEX_1*CPUID_SIZE+CPUID_ECX_OFFSET
 # define index_SSE4_2	COMMON_CPUID_INDEX_1*CPUID_SIZE+CPUID_ECX_OFFSET
+# define index_AVX	COMMON_CPUID_INDEX_1*CPUID_SIZE+CPUID_ECX_OFFSET
 
 # define index_Fast_Rep_String		FEATURE_INDEX_1*FEATURE_SIZE
 # define index_Fast_Copy_Backward	FEATURE_INDEX_1*FEATURE_SIZE