summaryrefslogtreecommitdiffstats
path: root/third_party/aom/aom_dsp/x86/sad_highbd_avx2.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/aom_dsp/x86/sad_highbd_avx2.c')
-rw-r--r--third_party/aom/aom_dsp/x86/sad_highbd_avx2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/aom/aom_dsp/x86/sad_highbd_avx2.c b/third_party/aom/aom_dsp/x86/sad_highbd_avx2.c
index 196394379..e8dd87a26 100644
--- a/third_party/aom/aom_dsp/x86/sad_highbd_avx2.c
+++ b/third_party/aom/aom_dsp/x86/sad_highbd_avx2.c
@@ -704,7 +704,12 @@ unsigned int aom_highbd_sad128x128_avg_avx2(const uint8_t *src, int src_stride,
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