Fix GCM_Xor16_SSE2 for 32-bit MSVC compiles

This commit is contained in:
Jeffrey Walton 2017-11-16 23:07:30 -05:00
parent a5bf962681
commit 7f7131dc55
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -84,7 +84,7 @@ extern void GCM_Xor16_SSE2(byte *a, const byte *b, const byte *c);
# else
static inline void GCM_Xor16_SSE2(byte *a, const byte *b, const byte *c)
{
# if CRYPTOPP_SSE2_ASM_AVAILABLE
# if CRYPTOPP_SSE2_ASM_AVAILABLE && defined(__GNUC__)
asm ("movdqa %1, %%xmm0; pxor %2, %%xmm0; movdqa %%xmm0, %0;"
: "=m" (a[0]) : "rm"(b[0]), "rm"(c[0]));
# else // CRYPTOPP_SSE2_INTRIN_AVAILABLE