diff --git a/cpu.cpp b/cpu.cpp index 7214bf98..5a160529 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -336,7 +336,7 @@ void DetectX86Features() ( // "xgetbv" : "=a"(a), "=d"(d) : "c"(0) : ".byte 0x0f, 0x01, 0xd0" "\n\t" - : "=a"(a), "=d"(d) : "c"(0) : + : "=a"(a), "=d"(d) : "c"(0) : "cc" ); word64 xcr0 = a | static_cast(d) << 32; g_hasAVX = (xcr0 & YMM_FLAG) == YMM_FLAG; diff --git a/sm4_simd.cpp b/sm4_simd.cpp index 64a10b09..99bafa41 100644 --- a/sm4_simd.cpp +++ b/sm4_simd.cpp @@ -22,6 +22,7 @@ #if (CRYPTOPP_AESNI_AVAILABLE) # include "adv_simd.h" +# include # include # include #endif