mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Check SIMD implementation
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user