[PATCH RFC] X86_64 Avx2 Detection

H.J. Lu hjl.tools@gmail.com
Thu Apr 17 15:04:00 GMT 2014


On Thu, Apr 17, 2014 at 7:00 AM, Ondřej Bílka <neleai@seznam.cz> wrote:
> On Wed, Apr 16, 2014 at 11:08:45PM -0400, ling.ma.program@gmail.com wrote:
>> From: Sihai Yao <sihai.ysh@alibaba-inc.com>
>>
>> This patch sets bit_AVX2_Usable of __cpu_features.feature by
>> checking COMMON_CPUID_INDEX_7 for Haswell. Architecture related assembler
>> file can use this bit to determine calling path.
>>
>> ---
>> This version removed FEATURE_INDEX_7 in Changelog and rewrote it
>> in proper foramt Thanks H.J.
>>
> I am also ok with this. H.J. could you commit this if you do not have
> more objections?

I checked it in with a slightly different ChangeLog entries.

Thanks.

-- 
H.J.
----
2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>

* sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
New.
* sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
Check and set bit_AVX2_Usable.
* sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
macro.
(bit_AVX2): Likewise.
(index_AVX2_Usable): Likewise.
(CPUID_AVX2): Likewise.
(HAS_AVX2): Likewise.



More information about the Libc-alpha mailing list