Compile optimized Argon2i impl on 32-bit MSVC

This commit is contained in:
Frank Denis 2016-03-05 18:21:59 +01:00
parent db139ced5f
commit 8b139cdc31
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -16,7 +16,7 @@
#include <string.h>
#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")