From 811e2ee30e3cc1d78f38dc826c53130de0a1d660 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Sun, 29 Aug 2021 23:31:45 +0000 Subject: [PATCH] Resolve MSVC warnings --- Vc/avx/const.h | 6 ++---- Vc/common/subscript.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Vc/avx/const.h b/Vc/avx/const.h index d67d04a06..8d752eca2 100644 --- a/Vc/avx/const.h +++ b/Vc/avx/const.h @@ -119,8 +119,7 @@ namespace AVX { #ifdef Vc_IMPL_AVX2 #if defined Vc_ICC || defined Vc_MSVC - __m256i allone; - allone = _mm256_cmpeq_epi8(allone, allone); + __m256i allone = _mm256_set1_epi64x(~0); #else auto allone = ~__m256i(); #endif @@ -134,8 +133,7 @@ namespace AVX { #ifdef Vc_IMPL_AVX2 #if defined Vc_ICC || defined Vc_MSVC - __m256i allone; - allone = _mm256_cmpeq_epi8(allone, allone); + __m256i allone = _mm256_set1_epi64x(~0); #else auto allone = ~__m256i(); #endif diff --git a/Vc/common/subscript.h b/Vc/common/subscript.h index 1f5059884..1ccf1b4a9 100644 --- a/Vc/common/subscript.h +++ b/Vc/common/subscript.h @@ -233,7 +233,7 @@ struct IndexVectorSizeMatches struct IndexVectorSizeMatches, false> - : public std::integral_constant { + : public std::integral_constant(MinSize) <= N)> { }; // SubscriptOperation {{{1 template <