add detection of rdrand to Xbyak::util::Cpu

This commit is contained in:
MITSUNARI Shigeo 2014-04-11 06:30:46 +09:00
parent 73da31f5c8
commit 38d3d7074f
6 changed files with 9 additions and 4 deletions

View file

@ -48,6 +48,7 @@ void putCPUinfo()
{ Cpu::tBMI2, "bmi2" },
{ Cpu::tLZCNT, "lzcnt" },
{ Cpu::tENHANCED_REP, "enh_rep" },
{ Cpu::tRDRAND, "rdrand" },
};
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
if (cpu.has(tbl[i].type)) printf(" %s", tbl[i].str);