mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 14:31:17 +12:00
Make codebase more CPU-agnostic + MacOS disclaimer (#559)
This commit is contained in:
parent
445b0afa95
commit
2c81d240a5
26 changed files with 416 additions and 272 deletions
26
src/Common/cpu_features.h
Normal file
26
src/Common/cpu_features.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
|
||||
class CPUFeaturesImpl
|
||||
{
|
||||
public:
|
||||
CPUFeaturesImpl();
|
||||
|
||||
std::string GetCPUName(); // empty if not available
|
||||
std::string GetCommaSeparatedExtensionList();
|
||||
|
||||
struct
|
||||
{
|
||||
bool ssse3{ false };
|
||||
bool sse4_1{ false };
|
||||
bool avx{ false };
|
||||
bool avx2{ false };
|
||||
bool lzcnt{ false };
|
||||
bool movbe{ false };
|
||||
bool bmi2{ false };
|
||||
bool aesni{ false };
|
||||
bool invariant_tsc{ false };
|
||||
}x86;
|
||||
private:
|
||||
char m_cpuBrandName[0x40]{ 0 };
|
||||
};
|
||||
|
||||
extern CPUFeaturesImpl g_CPUFeatures;
|
Loading…
Add table
Add a link
Reference in a new issue