From 8b139cdc31ce5371e933fcd9d92c9d90c003db6e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 5 Mar 2016 18:21:59 +0100 Subject: [PATCH] Compile optimized Argon2i impl on 32-bit MSVC --- src/libsodium/crypto_pwhash/argon2/argon2-core.c | 2 +- src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_pwhash/argon2/argon2-core.c b/src/libsodium/crypto_pwhash/argon2/argon2-core.c index 3630a24e..c2fb7c7d 100644 --- a/src/libsodium/crypto_pwhash/argon2/argon2-core.c +++ b/src/libsodium/crypto_pwhash/argon2/argon2-core.c @@ -550,7 +550,7 @@ int initialize(argon2_instance_t *instance, argon2_context *context) { int argon2_pick_best_implementation(void) { #if (defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)) || \ - (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64))) + (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86))) if (sodium_runtime_has_ssse3()) { fill_segment = fill_segment_ssse3; return 0; diff --git a/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c b/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c index 372ca0a5..a57eb1c3 100644 --- a/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c +++ b/src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c @@ -16,7 +16,7 @@ #include #if (defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H)) || \ - (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64))) + (defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86))) #pragma GCC target("sse2") #pragma GCC target("ssse3")