mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Help compiler optimize some crypto code on 64-bit build since x64 capable CPUs always support SSE and SSE2
This commit is contained in:
@@ -208,8 +208,13 @@ int CpuId(uint32 input, uint32 *output);
|
|||||||
// been enabled by DetectX86Features.
|
// been enabled by DetectX86Features.
|
||||||
void DisableCPUExtendedFeatures ();
|
void DisableCPUExtendedFeatures ();
|
||||||
|
|
||||||
|
#ifdef CRYPTOPP_BOOL_X64
|
||||||
|
#define HasSSE2() 1
|
||||||
|
#define HasISSE() 1
|
||||||
|
#else
|
||||||
#define HasSSE2() g_hasSSE2
|
#define HasSSE2() g_hasSSE2
|
||||||
#define HasISSE() g_hasISSE
|
#define HasISSE() g_hasISSE
|
||||||
|
#endif
|
||||||
#define HasMMX() g_hasMMX
|
#define HasMMX() g_hasMMX
|
||||||
#define HasSSE42() g_hasSSE42
|
#define HasSSE42() g_hasSSE42
|
||||||
#define HasSSE41() g_hasSSE41
|
#define HasSSE41() g_hasSSE41
|
||||||
|
|||||||
Reference in New Issue
Block a user