From 97282f61cd8b2155d13c6fcf10b49aa7773b5333 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 12 Sep 2016 22:29:13 -0400 Subject: [PATCH] Fix gcm.cpp compile under x86_64 Linux after 4f7fb2067df41dd8 --- gcm.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcm.cpp b/gcm.cpp index d35bd3fc..c8ffb364 100644 --- a/gcm.cpp +++ b/gcm.cpp @@ -35,6 +35,9 @@ NAMESPACE_BEGIN(CryptoPP) #elif (defined(CRYPTOPP_LLVM_CLANG_VERSION) || defined(CRYPTOPP_APPLE_CLANG_VERSION)) && defined(CRYPTOPP_X64_ASM_AVAILABLE) // 'movd eax, xmm0' or 'movd rax, xmm0'. REG_WORD() macro supplies REG32 or REG64. # define USE_MOVD_REG32_OR_REG64 1 +#elif defined(__GNUC__) && defined(CRYPTOPP_X64_ASM_AVAILABLE) +// 'movd eax, xmm0' or 'movd rax, xmm0'. REG_WORD() macro supplies REG32 or REG64. +# define USE_MOVD_REG32_OR_REG64 1 #else // 'mov eax, xmm0' or 'mov rax, xmm0'. REG_WORD() macro supplies REG32 or REG64. # define USE_MOV_REG32_OR_REG64 1