detect AVX2

This commit is contained in:
MITSUNARI Shigeo 2013-05-30 16:46:13 +09:00
parent a2c0dbd6c9
commit 9099a8aa6f
2 changed files with 19 additions and 5 deletions

View file

@ -42,6 +42,7 @@ void putCPUinfo()
{ Cpu::tPCLMULQDQ, "pclmulqdq" },
{ Cpu::tAVX, "avx" },
{ Cpu::tFMA, "fma" },
{ Cpu::tAVX2, "avx2" },
};
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
if (cpu.has(tbl[i].type)) printf(" %s", tbl[i].str);