From ac7f11e5b8cfb37f615a49b7a9be5ee99e48b79f Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 7 Jun 2017 15:50:16 +0200 Subject: [PATCH] disabling SIMD code in vector lib in debug mode --- lib/src/phy/utils/vector.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/src/phy/utils/vector.c b/lib/src/phy/utils/vector.c index d1961011e..26be1b2b4 100644 --- a/lib/src/phy/utils/vector.c +++ b/lib/src/phy/utils/vector.c @@ -39,6 +39,13 @@ #include "volk/volk.h" #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 i; int z=0; @@ -295,21 +302,17 @@ 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) { -#ifdef DEBUG_MODE -#warning FIXME: Disabling SSE/AVX in srslte_vec_lut_sss -#else -#ifdef LV_HAVE_SSE +#ifndef LV_HAVE_SSE for (int i=0;i