Skip to content
Snippets Groups Projects
Commit 12a21e3c authored by Han Huang's avatar Han Huang
Browse files

Bug fix for SIMD implementation in JVET_P0091

parent b72d7418
No related branches found
No related tags found
No related merge requests found
......@@ -249,7 +249,8 @@ void addBIOAvg4_SSE(const Pel* src0, int src0Stride, const Pel* src1, int src1St
a = _mm_unpacklo_epi16(_mm_loadl_epi64((const __m128i *) (src0 + x)),
_mm_loadl_epi64((const __m128i *) (src1 + x)));
#if JVET_P0091_REMOVE_BDOF_OFFSET_SHIFT
sum = _mm_add_epi32(sum, _mm_set1_epi32(2 * offset));
sum = _mm_add_epi32(sum, _mm_madd_epi16(a, _mm_set1_epi16(1)));
sum = _mm_add_epi32(sum, _mm_set1_epi32(offset));
sum = _mm_sra_epi32(sum, _mm_cvtsi32_si128(shift));
#else
sum = _mm_add_epi32(sum, _mm_madd_epi16(a, _mm_set1_epi16(2)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment