Sync with Upstream master
commit
24e1d30be4
5
gcm.cpp
5
gcm.cpp
|
|
@ -39,7 +39,10 @@ NAMESPACE_BEGIN(CryptoPP)
|
||||||
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
|
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
|
||||||
// Different assemblers accept different mnemonics: 'movd eax, xmm0' vs
|
// Different assemblers accept different mnemonics: 'movd eax, xmm0' vs
|
||||||
// 'movd rax, xmm0' vs 'mov eax, xmm0' vs 'mov rax, xmm0'
|
// 'movd rax, xmm0' vs 'mov eax, xmm0' vs 'mov rax, xmm0'
|
||||||
#if defined(__GNUC__) || defined(_MSC_VER)
|
#if (CRYPTOPP_LLVM_CLANG_VERSION >= 30600) || (CRYPTOPP_APPLE_CLANG_VERSION >= 70000) || defined(CRYPTOPP_CLANG_INTEGRATED_ASSEMBLER)
|
||||||
|
// 'movd eax, xmm0' only. REG_WORD() macro not used.
|
||||||
|
# define USE_MOVD_REG32 1
|
||||||
|
#elif defined(__GNUC__) || defined(_MSC_VER)
|
||||||
// 'movd eax, xmm0' or 'movd rax, xmm0'. REG_WORD() macro supplies REG32 or REG64.
|
// 'movd eax, xmm0' or 'movd rax, xmm0'. REG_WORD() macro supplies REG32 or REG64.
|
||||||
# define USE_MOVD_REG32_OR_REG64 1
|
# define USE_MOVD_REG32_OR_REG64 1
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue