diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-10-13 10:11:02 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-10-17 18:40:33 +0200 |
commit | 15b6c7d3b7e2726b71be3331e881863eb7602826 (patch) | |
tree | 3c492fc587cfc8ea0c4effc3312cdc704ec93ee4 /src/Crypto/cpu.h | |
parent | 2edd12fe22946cce7ef4cf588e8f31faf745b5f4 (diff) | |
download | VeraCrypt-15b6c7d3b7e2726b71be3331e881863eb7602826.tar.gz VeraCrypt-15b6c7d3b7e2726b71be3331e881863eb7602826.zip |
Implement detection of new CPU features: AVX2 and BMI2
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 1057a373..ab372cf8 100644 --- a/src/Crypto/cpu.h +++ b/src/Crypto/cpu.h @@ -167,6 +167,8 @@ extern "C" { // these should not be used directly extern int g_x86DetectionDone; extern int g_hasAVX; +extern int g_hasAVX2; +extern int g_hasBMI2; extern int g_hasSSE42; extern int g_hasSSE41; extern int g_hasSSSE3; @@ -196,6 +198,8 @@ extern int g_hasMMX; #define HasSSE42() g_hasSSE42 #define HasSSE41() g_hasSSE41 #define HasSAVX() g_hasAVX +#define HasSAVX2() g_hasAVX2 +#define HasSBMI2() g_hasBMI2 #define HasSSSE3() g_hasSSSE3 #define HasAESNI() g_hasAESNI #define HasCLMUL() g_hasCLMUL |