diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-01-31 01:00:54 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2019-02-01 00:35:42 +0100 |
commit | 915855f43b6bd30c2e01a49e261f813ccc7a0237 (patch) | |
tree | 255a25220917f4fabdb3b8a02011a0a06e8dccda /src/Crypto/cpu.h | |
parent | 3c18d54d1e3f10462ccdb2d44f220db1ee021477 (diff) | |
download | VeraCrypt-915855f43b6bd30c2e01a49e261f813ccc7a0237.tar.gz VeraCrypt-915855f43b6bd30c2e01a49e261f813ccc7a0237.zip |
Fix detection of CPU features AVX2 & BMI2. Add detection of RDRAND & RDSEED CPU features. Detect Hygon CPU as AMD one.
Diffstat (limited to 'src/Crypto/cpu.h')
-rw-r--r-- | src/Crypto/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Crypto/cpu.h b/src/Crypto/cpu.h index 8856a3e2..4dd5d88f 100644 --- a/src/Crypto/cpu.h +++ b/src/Crypto/cpu.h @@ -199,6 +199,8 @@ extern volatile int g_hasSSSE3; extern volatile int g_hasAESNI; extern volatile int g_hasCLMUL; extern volatile int g_isP4; +extern volatile int g_hasRDRAND; +extern volatile int g_hasRDSEED; extern volatile int g_isIntel; extern volatile int g_isAMD; extern volatile uint32 g_cacheLineSize; @@ -225,6 +227,8 @@ void DisableCPUExtendedFeatures (); #define HasAESNI() g_hasAESNI #define HasCLMUL() g_hasCLMUL #define IsP4() g_isP4 +#define HasRDRAND() g_hasRDRAND +#define HasRDSEED() g_hasRDSEED #define IsCpuIntel() g_isIntel #define IsCpuAMD() g_isAMD #define GetCacheLineSize() g_cacheLineSize |