Define two intrinsics for early MSVC versions
BUG=aomedia:1228
Change-Id: Iaa88810426bd7fe059ededf30956ffc57b897d62
diff --git a/aom_ports/msvc.h b/aom_ports/msvc.h
index 5a41d29..cd194ca 100644
--- a/aom_ports/msvc.h
+++ b/aom_ports/msvc.h
@@ -60,8 +60,16 @@
a, \
_mm_insert_epi16(_mm256_extractf128_si256(a, indx >> 3), d, indx % 8), \
indx >> 3)
+
+static INLINE int _mm256_extract_epi32(__m256i a, const int i) {
+ return a.m256i_i32[i & 7];
+}
+static INLINE __m256i _mm256_insert_epi32(__m256i a, int b, const int i) {
+ __m256i c = a;
+ c.m256i_i32[i & 7] = b;
+ return c;
+}
#endif // _MSC_VER <= 1900
#endif // HAVE_AVX
-
#endif // _MSC_VER
#endif // AOM_PORTS_MSVC_H_