From 47202b3349cad9df1e62978a8280fba266ae487d Mon Sep 17 00:00:00 2001 From: Sayed Adel Date: Sun, 29 Jul 2018 18:22:46 +0200 Subject: [PATCH] core:avx2 fix unaligned store for v_store_interleave v_uint32x8-3ch --- modules/core/include/opencv2/core/hal/intrin_avx.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/include/opencv2/core/hal/intrin_avx.hpp b/modules/core/include/opencv2/core/hal/intrin_avx.hpp index 5c2d0b6..fc2fd7c 100644 --- a/modules/core/include/opencv2/core/hal/intrin_avx.hpp +++ b/modules/core/include/opencv2/core/hal/intrin_avx.hpp @@ -2156,9 +2156,9 @@ inline void v_store_interleave( unsigned* ptr, const v_uint32x8& b, const v_uint } else { - _mm256_stream_si256((__m256i*)ptr, bgr0); - _mm256_stream_si256((__m256i*)(ptr + 8), p2); - _mm256_stream_si256((__m256i*)(ptr + 16), bgr2); + _mm256_storeu_si256((__m256i*)ptr, bgr0); + _mm256_storeu_si256((__m256i*)(ptr + 8), p2); + _mm256_storeu_si256((__m256i*)(ptr + 16), bgr2); } } -- 2.7.4