diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-10-19 12:42:38 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-10-19 12:42:38 -0400 |
commit | d9a4d2ab278ab50637e383b6174e9ec42db84327 (patch) | |
tree | c5107d9a43e560658bf3b65fcde55659d3292200 /sysdeps/x86_64/multiarch/init-arch.h | |
parent | 8f3b1ffefa61275315891770944bdbf5079e04ed (diff) | |
download | glibc-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.h | 4 |
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 |