CPUDetect: Indicate slow PDEP/PEXT only for Zen1/+/2 (Family 23)

This commit is contained in:
altimumdelta
2020-11-08 14:27:24 +01:00
parent 2acd3abe35
commit 77dc289517
2 changed files with 5 additions and 6 deletions

View File

@ -42,8 +42,7 @@ struct CPUInfo
bool bAVX2 = false;
bool bBMI1 = false;
bool bBMI2 = false;
// PDEP and PEXT are ridiculously slow on AMD Zen, so we have this flag to avoid using them there
// Zen 2 is also affected by this issue
// PDEP and PEXT are ridiculously slow on AMD Zen1, Zen1+ and Zen2 (Family 23)
bool bFastBMI2 = false;
bool bFMA = false;
bool bFMA4 = false;
@ -57,7 +56,7 @@ struct CPUInfo
bool bLAHFSAHF64 = false;
bool bLongMode = false;
bool bAtom = false;
bool bZen = false;
bool bZen1p2 = false;
// ARMv8 specific
bool bFP = false;