From ae646ec3556b20f80f9afa2793a9dc3aba8e42fe Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Mon, 16 Sep 2024 09:53:03 +0300 Subject: [PATCH] [intra] unaligned --- src/strategies/avx2/intra-avx2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategies/avx2/intra-avx2.c b/src/strategies/avx2/intra-avx2.c index 59b27be4..24acca9e 100644 --- a/src/strategies/avx2/intra-avx2.c +++ b/src/strategies/avx2/intra-avx2.c @@ -525,7 +525,7 @@ static void angular_pred_w4_hor_high_angle_avx2(uvg_pixel* dst, const uvg_pixel* for (int y = 0; y < height; y += 4) { // This solution assumes the delta int values to be 64-bit // Cast from 16-bit to 64-bit. - __m128i vidx = _mm_load_si128((__m128i*)delta_int); + __m128i vidx = _mm_loadu_si128((__m128i*)delta_int); __m256i vidx256 = _mm256_cvtepu16_epi64(vidx); __m256i vp = _mm256_i64gather_epi64((const long long int*)&ref_main[y], vidx256, 1);