summaryrefslogtreecommitdiffstats
path: root/src/common/x64
diff options
context:
space:
mode:
authorWunkolo <Wunkolo@gmail.com>2022-02-24 05:28:25 +0100
committerWunkolo <Wunkolo@gmail.com>2022-03-09 22:57:47 +0100
commit873a9fa7e5083de46f37718d0805aeec176af584 (patch)
tree8367047d071fae6c273faf0e6a61120e6c087f05 /src/common/x64
parentcpu_detect: Refactor cpu/manufacturer identification (diff)
downloadyuzu-873a9fa7e5083de46f37718d0805aeec176af584.tar
yuzu-873a9fa7e5083de46f37718d0805aeec176af584.tar.gz
yuzu-873a9fa7e5083de46f37718d0805aeec176af584.tar.bz2
yuzu-873a9fa7e5083de46f37718d0805aeec176af584.tar.lz
yuzu-873a9fa7e5083de46f37718d0805aeec176af584.tar.xz
yuzu-873a9fa7e5083de46f37718d0805aeec176af584.tar.zst
yuzu-873a9fa7e5083de46f37718d0805aeec176af584.zip
Diffstat (limited to '')
-rw-r--r--src/common/x64/cpu_detect.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp
index 65369bfbe..a95dc15a3 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]);
}