|
|
@ -39,6 +39,13 @@
|
|
|
|
#include "volk/volk.h"
|
|
|
|
#include "volk/volk.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG_MODE
|
|
|
|
|
|
|
|
#warning FIXME: Disabling SSE/AVX vector code
|
|
|
|
|
|
|
|
#undef LV_HAVE_SSE
|
|
|
|
|
|
|
|
#undef LV_HAVE_AVX
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int srslte_vec_acc_ii(int *x, uint32_t len) {
|
|
|
|
int srslte_vec_acc_ii(int *x, uint32_t len) {
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
|
int z=0;
|
|
|
|
int z=0;
|
|
|
@ -295,17 +302,13 @@ void srslte_vec_lut_fuf(float *x, uint32_t *lut, float *y, uint32_t len) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void srslte_vec_lut_sss(short *x, unsigned short *lut, short *y, uint32_t len) {
|
|
|
|
void srslte_vec_lut_sss(short *x, unsigned short *lut, short *y, uint32_t len) {
|
|
|
|
#ifdef DEBUG_MODE
|
|
|
|
#ifndef LV_HAVE_SSE
|
|
|
|
#warning FIXME: Disabling SSE/AVX in srslte_vec_lut_sss
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifdef LV_HAVE_SSE
|
|
|
|
|
|
|
|
for (int i=0;i<len;i++) {
|
|
|
|
for (int i=0;i<len;i++) {
|
|
|
|
y[lut[i]] = x[i];
|
|
|
|
y[lut[i]] = x[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
srslte_vec_lut_sss_sse(x, lut, y, len);
|
|
|
|
srslte_vec_lut_sss_sse(x, lut, y, len);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void srslte_vec_interleave_cf(float *real, float *imag, cf_t *x, uint32_t len) {
|
|
|
|
void srslte_vec_interleave_cf(float *real, float *imag, cf_t *x, uint32_t len) {
|
|
|
@ -517,8 +520,6 @@ void srslte_vec_prod_fff(float *x, float *y, float *z, uint32_t len) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void srslte_vec_prod_sss(short *x, short *y, short *z, uint32_t len) {
|
|
|
|
void srslte_vec_prod_sss(short *x, short *y, short *z, uint32_t len) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef LV_HAVE_AVX
|
|
|
|
#ifdef LV_HAVE_AVX
|
|
|
|
srslte_vec_prod_sss_avx(x,y,z,len);
|
|
|
|
srslte_vec_prod_sss_avx(x,y,z,len);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|