From 9d529ba0d5f6d2d5be16a88a3ac53c4e11f7b6c4 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 30 Apr 2020 11:52:50 +0200 Subject: [PATCH] fix compilation on arm, add missing declaration and headers --- lib/include/srslte/phy/utils/vector_simd.h | 2 ++ lib/src/phy/utils/mat.c | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/include/srslte/phy/utils/vector_simd.h b/lib/include/srslte/phy/utils/vector_simd.h index 1f1ead93f..d34b3a0a0 100644 --- a/lib/include/srslte/phy/utils/vector_simd.h +++ b/lib/include/srslte/phy/utils/vector_simd.h @@ -55,6 +55,8 @@ SRSLTE_API void srslte_vec_sc_prod_fff_simd(const float* x, const float h, float SRSLTE_API void srslte_vec_sc_prod_ccc_simd(const cf_t* x, const cf_t h, cf_t* z, const int len); +SRSLTE_API int srslte_vec_sc_prod_ccc_simd2(const cf_t* x, const cf_t h, cf_t* z, const int len); + /* SIMD Vector Product */ SRSLTE_API void srslte_vec_prod_ccc_split_simd(const float* a_re, const float* a_im, diff --git a/lib/src/phy/utils/mat.c b/lib/src/phy/utils/mat.c index 23fd4d9d4..60ebd92ee 100644 --- a/lib/src/phy/utils/mat.c +++ b/lib/src/phy/utils/mat.c @@ -22,6 +22,9 @@ #include #include #include +#include +#include +#include #include "srslte/phy/utils/mat.h" @@ -367,14 +370,14 @@ int srslte_matrix_NxN_inv_init(srslte_matrix_NxN_inv_t* q, uint32_t N) q->N = N; - q->row_buffer = srslte_vec_malloc(sizeof(cf_t) * N * 2); + q->row_buffer = srslte_vec_cf_malloc(N * 2); if (!q->row_buffer) { perror("malloc"); ret = SRSLTE_ERROR; } if (!ret) { - q->matrix = srslte_vec_malloc(sizeof(cf_t) * N * N * 2); + q->matrix = srslte_vec_cf_malloc(N * N * 2); if (!q->matrix) { perror("malloc"); ret = SRSLTE_ERROR;