Files
FEX-Emu--FEX/Source/Windows/Common/CPUFeatures.h
T
Paulo Matos 2b4ec88dae Whole-tree reformat
This follows discussions from #3413.
Followup commits add clang-format file, script and blame ignore lists.
2024-04-12 16:26:02 +02:00

33 lines
625 B
C++

// SPDX-License-Identifier: MIT
#pragma once
#include <windef.h>
#include <winternl.h>
namespace FEXCore::Context {
class Context;
}
/**
* @brief Maps CPUID results to Windows CPU info structures
*/
namespace FEX::Windows {
class CPUFeatures {
public:
CPUFeatures(FEXCore::Context::Context& CTX);
/**
* @brief If the given PF_* feature is supported
*/
bool IsFeaturePresent(uint32_t Feature);
/**
* @brief Fills in `Info` according to the detected CPU features
*/
void UpdateInformation(SYSTEM_CPU_INFORMATION* Info);
private:
SYSTEM_CPU_INFORMATION CpuInfo {};
};
} // namespace FEX::Windows