summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/x64/cpu_detect.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h
index e3b63302e..e4f90bee1 100644
--- a/src/common/x64/cpu_detect.h
+++ b/src/common/x64/cpu_detect.h
@@ -1,12 +1,13 @@
1// Copyright 2013 Dolphin Emulator Project / 2015 Citra Emulator Project 1// Copyright 2013 Dolphin Emulator Project / 2015 Citra Emulator Project / 2022 Yuzu Emulator
2// Licensed under GPLv2 or any later version 2// Project Project Licensed under GPLv2 or any later version Refer to the license.txt file included.
3// Refer to the license.txt file included.
4 3
5#pragma once 4#pragma once
6 5
6#include "common/common_types.h"
7
7namespace Common { 8namespace Common {
8 9
9enum class Manufacturer : u32 { 10enum class Manufacturer : u8 {
10 Intel = 0, 11 Intel = 0,
11 AMD = 1, 12 AMD = 1,
12 Hygon = 2, 13 Hygon = 2,
@@ -18,25 +19,25 @@ struct CPUCaps {
18 Manufacturer manufacturer; 19 Manufacturer manufacturer;
19 char cpu_string[0x21]; 20 char cpu_string[0x21];
20 char brand_string[0x41]; 21 char brand_string[0x41];
21 bool sse;
22 bool sse2;
23 bool sse3;
24 bool ssse3;
25 bool sse4_1;
26 bool sse4_2;
27 bool lzcnt;
28 bool avx;
29 bool avx2;
30 bool avx512;
31 bool bmi1;
32 bool bmi2;
33 bool fma;
34 bool fma4;
35 bool aes;
36 bool invariant_tsc;
37 u32 base_frequency; 22 u32 base_frequency;
38 u32 max_frequency; 23 u32 max_frequency;
39 u32 bus_frequency; 24 u32 bus_frequency;
25 bool sse : 1;
26 bool sse2 : 1;
27 bool sse3 : 1;
28 bool ssse3 : 1;
29 bool sse4_1 : 1;
30 bool sse4_2 : 1;
31 bool lzcnt : 1;
32 bool avx : 1;
33 bool avx2 : 1;
34 bool avx512 : 1;
35 bool bmi1 : 1;
36 bool bmi2 : 1;
37 bool fma : 1;
38 bool fma4 : 1;
39 bool aes : 1;
40 bool invariant_tsc : 1;
40}; 41};
41 42
42/** 43/**