Commit 7ba35f6c authored by Yaowu Xu's avatar Yaowu Xu

Define two intrinsics for early MSVC versions

BUG=aomedia:1228

Change-Id: Iaa88810426bd7fe059ededf30956ffc57b897d62
parent 533ac34d
......@@ -60,8 +60,16 @@ static INLINE long lroundf(float x) {
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_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment