From c02650826deae9176f2c83b277d9ba03251ebb5e Mon Sep 17 00:00:00 2001 From: Raymond Knopp Date: Sat, 19 Feb 2022 17:17:09 +0100 Subject: [PATCH] SIMD alignment of stack arrays in ptrs channel estimation. --- openair1/PHY/NR_REFSIG/ptrs_nr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openair1/PHY/NR_REFSIG/ptrs_nr.c b/openair1/PHY/NR_REFSIG/ptrs_nr.c index 40a6a56611..200500bfd8 100644 --- a/openair1/PHY/NR_REFSIG/ptrs_nr.c +++ b/openair1/PHY/NR_REFSIG/ptrs_nr.c @@ -268,8 +268,8 @@ void nr_ptrs_cpe_estimation(uint8_t K_ptrs, return; } uint16_t sc_per_symbol = (nb_rb + K_ptrs - 1)/K_ptrs; - struct complex16 ptrs_p[(1 + sc_per_symbol/4)*4]; - struct complex16 dmrs_comp_p[(1 + sc_per_symbol/4)*4]; + struct complex16 ptrs_p[(1 + sc_per_symbol/4)*4] __attribute__((aligned(32))); + struct complex16 dmrs_comp_p[(1 + sc_per_symbol/4)*4] __attribute__((aligned(32))); double abs = 0.0; double real = 0.0; double imag = 0.0;