summaryrefslogtreecommitdiffstats
path: root/src/common/x64/cpu_detect.h
diff options
context:
space:
mode:
authorMatías Locatti <matias.locatti@gmail.com>2022-11-11 09:36:47 +0100
committerMatías Locatti <matias.locatti@gmail.com>2022-11-12 03:50:48 +0100
commit69768ec71e78dd1ea8da835b0a4eedbb1d404c28 (patch)
tree6d08d9fb38829e99614c912ee971e98068dbc3d1 /src/common/x64/cpu_detect.h
parentMerge pull request #9223 from goldenx86/threadcount (diff)
downloadyuzu-69768ec71e78dd1ea8da835b0a4eedbb1d404c28.tar
yuzu-69768ec71e78dd1ea8da835b0a4eedbb1d404c28.tar.gz
yuzu-69768ec71e78dd1ea8da835b0a4eedbb1d404c28.tar.bz2
yuzu-69768ec71e78dd1ea8da835b0a4eedbb1d404c28.tar.lz
yuzu-69768ec71e78dd1ea8da835b0a4eedbb1d404c28.tar.xz
yuzu-69768ec71e78dd1ea8da835b0a4eedbb1d404c28.tar.zst
yuzu-69768ec71e78dd1ea8da835b0a4eedbb1d404c28.zip
Diffstat (limited to '')
-rw-r--r--src/common/x64/cpu_detect.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h
index 6830f3795..ca8db19d6 100644
--- a/src/common/x64/cpu_detect.h
+++ b/src/common/x64/cpu_detect.h
@@ -4,6 +4,7 @@
#pragma once
+#include <optional>
#include <string_view>
#include "common/common_types.h"
@@ -74,4 +75,7 @@ struct CPUCaps {
*/
const CPUCaps& GetCPUCaps();
+/// Detects CPU core count
+std::optional<int> GetProcessorCount();
+
} // namespace Common