commit | abff8b24b935f134fd6c09a659dcb2c3fd6a1051 | [log] [tgz] |
---|---|---|
author | James Zern <jzern@google.com> | Fri Apr 24 19:21:53 2015 -0700 |
committer | James Zern <jzern@google.com> | Fri Apr 24 19:24:14 2015 -0700 |
tree | e43d3b84882fbac5b53ee20796d9c9a0070ab87d | |
parent | b3e411e48164cda6913b659128549858b6f69ba3 [diff] |
x86_simd_caps: check max cpuid before testing AVX2 structured extended feature flags require eax = 7; avoids incorrectly detecting avx2 on some older processors that support avx. from [1]: INPUT EAX = 0: Returns CPUID’s Highest Value for Basic Processor Information and the Vendor Identification String [1] http://www.intel.com/content/www/us/en/processors/processor-identification-cpuid-instruction-note.html Change-Id: I6b4735b5f7b7729a815e428fca767d1e5a10bcab