This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH RFC] X86_64 Avx2 Detection


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]