summaryrefslogtreecommitdiff
path: root/src/common/x64/cpu_detect.h
diff options
context:
space:
mode:
authorGravatar Mai2022-11-12 03:19:26 +0000
committerGravatar GitHub2022-11-12 03:19:26 +0000
commit7dfe35eca69c5c59f32c8ffa3d3adc5e7806c011 (patch)
tree54367d6738c02d478841563db0436dc99f46e240 /src/common/x64/cpu_detect.h
parentMerge pull request #9204 from vonchenplus/dma_copy_1d_random_crash (diff)
parentAdd CPU core count to log files (diff)
downloadyuzu-7dfe35eca69c5c59f32c8ffa3d3adc5e7806c011.tar.gz
yuzu-7dfe35eca69c5c59f32c8ffa3d3adc5e7806c011.tar.xz
yuzu-7dfe35eca69c5c59f32c8ffa3d3adc5e7806c011.zip
Merge pull request #9231 from goldenx86/corecount
Add CPU core count to log files
Diffstat (limited to 'src/common/x64/cpu_detect.h')
-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 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <optional>
7#include <string_view> 8#include <string_view>
8#include "common/common_types.h" 9#include "common/common_types.h"
9 10
@@ -74,4 +75,7 @@ struct CPUCaps {
74 */ 75 */
75const CPUCaps& GetCPUCaps(); 76const CPUCaps& GetCPUCaps();
76 77
78/// Detects CPU core count
79std::optional<int> GetProcessorCount();
80
77} // namespace Common 81} // namespace Common