From b8f4d03979be3a6a27b6a8d425b6e1ec07f49125 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Thu, 30 Jul 2020 12:09:21 +0200 Subject: [PATCH] Fix in SIMD frequency estimation --- lib/src/phy/utils/vector_simd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/utils/vector_simd.c b/lib/src/phy/utils/vector_simd.c index a43a9641a..2d55ac7ca 100644 --- a/lib/src/phy/utils/vector_simd.c +++ b/lib/src/phy/utils/vector_simd.c @@ -1691,7 +1691,7 @@ float srslte_vec_estimate_frequency_simd(const cf_t* x, int len) } // Accumulate using horizontal addition - for (int k = 2; k < SRSLTE_SIMD_CF_SIZE; k *= 2) { + for (int k = 1; k < SRSLTE_SIMD_CF_SIZE; k *= 2) { _sum.re = srslte_simd_f_hadd(_sum.re, _sum.re); _sum.im = srslte_simd_f_hadd(_sum.im, _sum.im); }