This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH RFC] X86_64 Avx2 Detection
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: Ling Ma <ling dot ma dot program at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>, Liubov Dmitrieva <liubov dot dmitrieva at gmail dot com>, Sihai Yao <sihai dot ysh at alibaba-inc dot com>
- Date: Thu, 17 Apr 2014 08:04:03 -0700
- Subject: Re: [PATCH RFC] X86_64 Avx2 Detection
- Authentication-results: sourceware.org; auth=none
- References: <1397704125-15650-1-git-send-email-sihai dot ysh at alibaba-inc dot com> <20140417140043 dot GA13414 at domone dot podge>
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.