Avoid BLAKE2 AVX2 implementation on Win32

This commit is contained in:
Frank Denis 2016-03-17 17:31:57 +01:00
parent 4b6667a9d3
commit a54e9402c5
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
#include <string.h>
#if (defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)) || \
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)))
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)))
#pragma GCC target("sse2")
#pragma GCC target("ssse3")

View File

@ -417,7 +417,7 @@ int
blake2b_pick_best_implementation(void)
{
#if (defined(HAVE_AVX2INTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)) || \
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)))
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)))
if (sodium_runtime_has_avx2()) {
blake2b_compress = blake2b_compress_avx2;
return 0;