Check SIMD implementation

This commit is contained in:
Alex
2023-01-03 01:35:40 +02:00
parent 303dec8dfb
commit 450fe4f0ac
2 changed files with 130 additions and 0 deletions

View File

@ -114,6 +114,17 @@ namespace CPU
Disable
};
enum x86SIMDType
{
SIMD_NONE,
SIMD_SSE,
SIMD_SSE2,
SIMD_SSE3,
SIMD_SSSE3,
SIMD_SSE41,
SIMD_SSE42,
};
/**
* @brief Get CPU vendor identifier.
*
@ -135,6 +146,21 @@ namespace CPU
*/
char *Hypervisor();
/**
* @brief Check SIMD support.
*
* @return x86SIMDType
*/
x86SIMDType CheckSIMD();
/**
* @brief Check SIMD support.
*
* @param Type SIMD type.
* @return true if supported.
* @return false if not supported.
*/
bool CheckSIMD(x86SIMDType Type);
/**
* @brief Pause the CPU
*/