diff options
| author | Wunkolo <Wunkolo@gmail.com> | 2022-02-23 20:28:25 -0800 |
|---|---|---|
| committer | Wunkolo <Wunkolo@gmail.com> | 2022-03-09 13:57:47 -0800 |
| commit | b603adb6ac3bf317bd7659c5acde059e20cc121f (patch) | |
| tree | 8367047d071fae6c273faf0e6a61120e6c087f05 /src/common/x64/cpu_detect.cpp | |
| parent | 4aa5b5779b0bb327c3786c56856ed504ab5d0b3e (diff) | |
cpu_detect: Add missing `lzcnt` detection
Diffstat (limited to 'src/common/x64/cpu_detect.cpp')
| -rw-r--r-- | src/common/x64/cpu_detect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp index 65369bfbeb..a95dc15a3d 100644 --- a/src/common/x64/cpu_detect.cpp +++ b/src/common/x64/cpu_detect.cpp @@ -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]); } |
