Commit 533ac34d authored by Yaowu Xu's avatar Yaowu Xu

Change to use an unaligned store

This fixes a segmentation fault in unit test:
AVX2/CFLPredictTest.PredictTest/7

Change-Id: I173340965f465a82019167e0964b9901683b60a8
parent cdbc47f0
......@@ -137,7 +137,7 @@ static INLINE void cfl_predict_lbd_x(const int16_t *pred_buf_q3, uint8_t *dst,
} else {
res = _mm256_permute4x64_epi64(res, _MM_SHUFFLE(3, 1, 2, 0));
if (width == 16)
_mm_store_si128((__m128i *)dst, _mm256_castsi256_si128(res));
_mm_storeu_si128((__m128i *)dst, _mm256_castsi256_si128(res));
else
_mm256_storeu_si256((__m256i *)dst, res);
}
......
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