From de187d4c889e1087d58e7fe0f94d228b8ef9a585 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 9 Apr 2021 18:17:00 +0200 Subject: [PATCH] Fix copy-past issue in srsran_vec_apply_cfo_simd --- lib/src/phy/utils/vector_simd.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/src/phy/utils/vector_simd.c b/lib/src/phy/utils/vector_simd.c index 043c91908..266e0fab5 100644 --- a/lib/src/phy/utils/vector_simd.c +++ b/lib/src/phy/utils/vector_simd.c @@ -1710,14 +1710,13 @@ void srsran_vec_apply_cfo_simd(const cf_t* x, float cfo, cf_t* z, int len) } } else { for (; i < len - SRSRAN_SIMD_F_SIZE + 1; i += SRSRAN_SIMD_F_SIZE) { - for (; i < len - SRSRAN_SIMD_CF_SIZE + 1; i += SRSRAN_SIMD_CF_SIZE) { - simd_cf_t a = srsran_simd_cfi_loadu(&x[i]); + simd_cf_t a = srsran_simd_cfi_loadu(&x[i]); - simd_cf_t r = srsran_simd_cf_prod(a, _simd_phase); - _simd_phase = srsran_simd_cf_prod(_simd_phase, _simd_osc); + simd_cf_t r = srsran_simd_cf_prod(a, _simd_phase); - srsran_simd_cfi_storeu(&z[i], r); - } + srsran_simd_cfi_storeu(&z[i], r); + + _simd_phase = srsran_simd_cf_prod(_simd_phase, _simd_osc); } } #endif