From 78de0c718b9f3059d7e47c8c2ce9b661fcdded8e Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 25 Jan 2017 15:20:47 +0100 Subject: [PATCH] fixed alignment problem in vec_abs_simd --- srslte/lib/utils/vector_simd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srslte/lib/utils/vector_simd.c b/srslte/lib/utils/vector_simd.c index c150209ca..25c1d2b7d 100644 --- a/srslte/lib/utils/vector_simd.c +++ b/srslte/lib/utils/vector_simd.c @@ -431,14 +431,14 @@ void srslte_vec_abs_square_cf_simd(cf_t *x, float *z, uint32_t len) { __m128 xVal1, xVal2, zVal; for(; number < quarterPoints; number++){ - xVal1 = _mm_load_ps(xPtr); + xVal1 = _mm_loadu_ps(xPtr); xPtr += 4; - xVal2 = _mm_load_ps(xPtr); + xVal2 = _mm_loadu_ps(xPtr); xPtr += 4; xVal1 = _mm_mul_ps(xVal1, xVal1); xVal2 = _mm_mul_ps(xVal2, xVal2); zVal = _mm_hadd_ps(xVal1, xVal2); - _mm_store_ps(zPtr, zVal); + _mm_storeu_ps(zPtr, zVal); zPtr += 4; }