diff --git a/srslte/include/srslte/fec/rm_turbo.h b/srslte/include/srslte/fec/rm_turbo.h index aa2469f7c..875def532 100644 --- a/srslte/include/srslte/fec/rm_turbo.h +++ b/srslte/include/srslte/fec/rm_turbo.h @@ -83,11 +83,6 @@ SRSLTE_API int srslte_rm_turbo_rx_lut(int16_t *input, uint32_t cb_idx, uint32_t rv_idx); -SRSLTE_API int srslte_rm_turbo_rx_lut_simd(int16_t *input, - int16_t *output, - uint32_t in_len, - uint32_t cb_idx, - uint32_t rv_idx); /* High-level API */ typedef struct SRSLTE_API { diff --git a/srslte/lib/fec/src/rm_turbo.c b/srslte/lib/fec/src/rm_turbo.c index 7e4467994..5dc4d7086 100644 --- a/srslte/lib/fec/src/rm_turbo.c +++ b/srslte/lib/fec/src/rm_turbo.c @@ -42,6 +42,9 @@ #ifdef HAVE_SIMD #include #include + +int srslte_rm_turbo_rx_lut_simd(int16_t *input, int16_t *output, uint32_t in_len, uint32_t cb_idx, uint32_t rv_idx); + #endif #define NCOLS 32 @@ -304,14 +307,6 @@ int srslte_rm_turbo_rx_lut(int16_t *input, int16_t *output, uint32_t in_len, uin #ifdef HAVE_SIMD -static void print128_num(__m128i var) -{ - int16_t *val = (int16_t*) &var;//can also use uint16_t instead of 16_t - printf("Numerical: %d %d %d %d %d %d %d %d \n", - val[0], val[1], val[2], val[3], val[4], val[5], - val[6], val[7]); -} - int srslte_rm_turbo_rx_lut_simd(int16_t *input, int16_t *output, uint32_t in_len, uint32_t cb_idx, uint32_t rv_idx) { diff --git a/srslte/lib/fec/test/rm_turbo_test.c b/srslte/lib/fec/test/rm_turbo_test.c index 5b92545eb..119093564 100644 --- a/srslte/lib/fec/test/rm_turbo_test.c +++ b/srslte/lib/fec/test/rm_turbo_test.c @@ -185,9 +185,7 @@ int main(int argc, char **argv) { bzero(bits2_s, long_cb_enc*sizeof(short)); srslte_rm_turbo_rx_lut(rm_bits_s, bits2_s, nof_e_bits, cb_idx, rv_idx); - - //srslte_vec_fprint_f(stdout, bits_f, long_cb_enc); - //srslte_vec_fprint_s(stdout, bits2_s, long_cb_enc); + for (int i=0;i