1
0
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:
Mounir IDRASSI
2026-06-03 15:10:13 +09:00
parent c748b44b02
commit aab9e38894
+1 -1
View File
@@ -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