sad_highbd_avx2: avoid _mm256_set1_epi64x w/x86 vs2013 this version has the prototype, but will fail at link time Change-Id: I67a11c2b131313ebb9380aece988cd7805223cbe
diff --git a/aom_dsp/x86/sad_highbd_avx2.c b/aom_dsp/x86/sad_highbd_avx2.c index 1963943..e8dd87a 100644 --- a/aom_dsp/x86/sad_highbd_avx2.c +++ b/aom_dsp/x86/sad_highbd_avx2.c
@@ -704,7 +704,12 @@ static INLINE void get_4d_sad_from_mm256_epi32(const __m256i *v, uint32_t *res) { __m256i u0, u1, u2, u3; +#if defined(_MSC_VER) && defined(_M_IX86) && _MSC_VER < 1900 + const __m256i mask = _mm256_setr_epi32(UINT32_MAX, 0, UINT32_MAX, 0, + UINT32_MAX, 0, UINT32_MAX, 0); +#else const __m256i mask = _mm256_set1_epi64x(UINT32_MAX); +#endif __m128i sad; // 8 32-bit summation