diff options
Diffstat (limited to 'src/Crypto/cpu.h')
-rw-r--r-- | src/Crypto/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Crypto/cpu.h b/src/Crypto/cpu.h index 157aeaef..2661bf1c 100644 --- a/src/Crypto/cpu.h +++ b/src/Crypto/cpu.h @@ -152,7 +152,7 @@ extern __m128i _mm_slli_si128(__m128i _A, int _Imm); #endif #endif -#if CRYPTOPP_SSSE3_AVAILABLE || defined(__INTEL_COMPILER) +#if CRYPTOPP_BOOL_SSSE3_INTRINSICS_AVAILABLE || defined(__INTEL_COMPILER) #if defined(TC_WINDOWS_DRIVER) || defined (_UEFI) #if defined(__cplusplus) extern "C" { @@ -214,7 +214,7 @@ extern "C" { #endif #define CRYPTOPP_CPUID_AVAILABLE -#ifndef CRYPTOPP_DISABLE_AESNI +#if !defined(CRYPTOPP_DISABLE_AESNI) && !defined(WOLFCRYPT_BACKEND) #define TC_AES_HW_CPU #endif @@ -238,7 +238,7 @@ extern volatile int g_isIntel; extern volatile int g_isAMD; extern volatile uint32 g_cacheLineSize; void DetectX86Features(); // must be called at the start of the program/driver -int CpuId(uint32 input, uint32 *output); +int CpuId(uint32 input, uint32 output[4]); // disable all CPU extended features (e.g. SSE, AVX, AES) that may have // been enabled by DetectX86Features. void DisableCPUExtendedFeatures (); |