cpu_detect: Add missing `lzcnt` detection

merge-requests/60/head
Wunkolo 2022-02-23 20:28:25 +07:00
parent ec5f3351b6
commit 873a9fa7e5
1 changed files with 1 additions and 0 deletions

@ -138,6 +138,7 @@ static CPUCaps Detect() {
if (max_ex_fn >= 0x80000001) {
// Check for more features
__cpuid(cpu_id, 0x80000001);
caps.lzcnt = Common::Bit<5>(cpu_id[2]);
caps.fma4 = Common::Bit<16>(cpu_id[2]);
}