1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-13 11:10:39 +00:00

Add support for detecting AVX2. Confirmed to detect on Haswell i3.

This commit is contained in:
Veselin Georgiev 2014-09-24 00:03:11 +03:00
commit fa2083a992
4 changed files with 9 additions and 1 deletions

View file

@ -558,6 +558,7 @@ const char* cpu_feature_str(cpu_feature_t feature)
{ CPU_FEATURE_APERFMPERF, "aperfmperf" },
{ CPU_FEATURE_PFI, "pfi" },
{ CPU_FEATURE_PA, "pa" },
{ CPU_FEATURE_AVX2, "avx2" },
};
unsigned i, n = COUNT_OF(matchtable);
if (n != NUM_CPU_FEATURES) {