From a7db85a6c29cb72b9452b2dd18b04e79fef65d4d Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Fri, 15 Jun 2018 12:31:56 +0200
Subject: [PATCH] put back variables in the local stack

---
 .../PHY/LTE_TRANSPORT/ulsch_demodulation.c    | 21 ++-----------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c b/openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c
index 7a34c4fc8a..6bad4de05b 100644
--- a/openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c
+++ b/openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c
@@ -1024,25 +1024,6 @@ void ulsch_channel_compensation(int32_t **rxdataF_ext,
 #endif
 }
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-#if defined(__x86_64__) || defined(__i386__)
-__m128 avg128U;
-#elif defined(__arm__)
-int32x4_t avg128U;
-#endif
-
 void ulsch_channel_level(int32_t **drs_ch_estimates_ext,
                          LTE_DL_FRAME_PARMS *frame_parms,
                          int32_t *avg,
@@ -1053,7 +1034,9 @@ void ulsch_channel_level(int32_t **drs_ch_estimates_ext,
   uint8_t aarx;
 #if defined(__x86_64__) || defined(__i386__)
   __m128i *ul_ch128;
+  __m128 avg128U;
 #elif defined(__arm__)
+  int32x4_t avg128U;
   int16x4_t *ul_ch128;
 #endif
   for (aarx=0; aarx<frame_parms->nb_antennas_rx; aarx++) {
-- 
GitLab