Skip to content

Commit

Permalink
Merge pull request #418 from Jan-E/vs2010x64
Browse files Browse the repository at this point in the history
Fix x64 builds for MSVC < vc11
  • Loading branch information
jedisct1 authored Jul 24, 2016
2 parents 482ab1e + 6b739fc commit 5497ca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)) && _MSC_VER > 1600)

#pragma GCC target("sse2")
#pragma GCC target("ssse3")
Expand Down
2 changes: 1 addition & 1 deletion src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ blake2b_pick_best_implementation(void)
{
/* LCOV_EXCL_START */
#if (defined(HAVE_AVX2INTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)) || \
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)))
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)) && _MSC_VER > 1600)
if (sodium_runtime_has_avx2()) {
blake2b_compress = blake2b_compress_avx2;
return 0;
Expand Down

0 comments on commit 5497ca1

Please sign in to comment.