mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
4512a6bbfc
The information is duplicated in the brand string and the telemetry field is unused
36 lines
742 B
C++
36 lines
742 B
C++
// Copyright 2013 Dolphin Emulator Project / 2015 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
namespace Common {
|
|
|
|
/// x86/x64 CPU capabilities that may be detected by this module
|
|
struct CPUCaps {
|
|
char cpu_string[0x21];
|
|
char brand_string[0x41];
|
|
bool sse;
|
|
bool sse2;
|
|
bool sse3;
|
|
bool ssse3;
|
|
bool sse4_1;
|
|
bool sse4_2;
|
|
bool lzcnt;
|
|
bool avx;
|
|
bool avx2;
|
|
bool bmi1;
|
|
bool bmi2;
|
|
bool fma;
|
|
bool fma4;
|
|
bool aes;
|
|
};
|
|
|
|
/**
|
|
* Gets the supported capabilities of the host CPU
|
|
* @return Reference to a CPUCaps struct with the detected host CPU capabilities
|
|
*/
|
|
const CPUCaps& GetCPUCaps();
|
|
|
|
} // namespace Common
|