mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-06-13 16:26:59 -05:00
Fix x64 CPU feature macro guard
CRYPTOPP_BOOL_X64 is defined as 0 on non-x64 builds, so #ifdef made HasSSE2() and HasISSE() always true. Use #if so non-x64 builds follow runtime feature detection and DisableCPUExtendedFeatures().
This commit is contained in:
+1
-1
@@ -266,7 +266,7 @@ int CpuId(uint32 input, uint32 output[4]);
|
||||
// been enabled by DetectX86Features.
|
||||
void DisableCPUExtendedFeatures ();
|
||||
|
||||
#ifdef CRYPTOPP_BOOL_X64
|
||||
#if CRYPTOPP_BOOL_X64
|
||||
#define HasSSE2() 1
|
||||
#define HasISSE() 1
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user