fix compilation on arm, add missing declaration and headers

master
Andre Puschmann 5 years ago
parent 2569a94deb
commit 9d529ba0d5

@ -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,

@ -22,6 +22,9 @@
#include <complex.h>
#include <math.h>
#include <memory.h>
#include <srslte/phy/utils/vector.h>
#include <srslte/phy/utils/vector_simd.h>
#include <stdlib.h>
#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;

Loading…
Cancel
Save