_MSC_VER > 1600 -> _MSC_VER >= 1700 for consistency
This commit is contained in:
parent
5497ca1fad
commit
19a9d18b9c
@ -7,7 +7,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if (defined(HAVE_AVX2INTRIN_H) && defined(HAVE_EMMINTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_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)) && _MSC_VER > 1600)
|
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)) && _MSC_VER >= 1700)
|
||||||
|
|
||||||
#pragma GCC target("sse2")
|
#pragma GCC target("sse2")
|
||||||
#pragma GCC target("ssse3")
|
#pragma GCC target("ssse3")
|
||||||
|
@ -429,7 +429,7 @@ blake2b_pick_best_implementation(void)
|
|||||||
{
|
{
|
||||||
/* LCOV_EXCL_START */
|
/* LCOV_EXCL_START */
|
||||||
#if (defined(HAVE_AVX2INTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)) || \
|
#if (defined(HAVE_AVX2INTRIN_H) && defined(HAVE_TMMINTRIN_H) && defined(HAVE_SMMINTRIN_H)) || \
|
||||||
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)) && _MSC_VER > 1600)
|
(defined(_MSC_VER) && (defined(_M_X64) || defined(_M_AMD64)) && _MSC_VER >= 1700)
|
||||||
if (sodium_runtime_has_avx2()) {
|
if (sodium_runtime_has_avx2()) {
|
||||||
blake2b_compress = blake2b_compress_avx2;
|
blake2b_compress = blake2b_compress_avx2;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user