diff --git a/openair1/PHY/MODULATION/nr_modulation.c b/openair1/PHY/MODULATION/nr_modulation.c index 3ce067fe14..cba5e4ba53 100644 --- a/openair1/PHY/MODULATION/nr_modulation.c +++ b/openair1/PHY/MODULATION/nr_modulation.c @@ -38,7 +38,7 @@ void nr_modulation(uint32_t *in, uint32_t bit_cnt; uint64_t x,x1,x2; -#if defined(__AVX2__) +#if 0//defined(__AVX2__) uint16_t *in_2bytes = (uint16_t*) in; __m256i *nr_mod_table256; __m256i *out256; @@ -113,7 +113,9 @@ void nr_modulation(uint32_t *in, out32[i] = nr_mod_table32[in_bytes[i]]; return; -#if defined(__AVX2__) +#if 0//defined(__AVX2__) +// disabling this as it is slower than SSE2 +// (maybe because L1 cache could not hold the large table) case 2: nr_mod_table256 = (__m256i*) nr_qpsk_2byte_mod_table; out256 = (__m256i*) out; diff --git a/openair1/PHY/NR_REFSIG/nr_gen_mod_table.c b/openair1/PHY/NR_REFSIG/nr_gen_mod_table.c index f7ec99e8e8..286df21203 100644 --- a/openair1/PHY/NR_REFSIG/nr_gen_mod_table.c +++ b/openair1/PHY/NR_REFSIG/nr_gen_mod_table.c @@ -34,7 +34,7 @@ void nr_generate_modulation_table() { short nr_qpsk_mod_table[8] = {16384,16384,-16384,16384,16384,-16384,-16384,-16384}; -#if defined(__AVX2__) +#if 0//defined(__AVX2__) //QPSK m256 table = (short*) nr_qpsk_2byte_mod_table; for (i=0; i<65536; i++) { diff --git a/openair1/PHY/NR_REFSIG/nr_mod_table.h b/openair1/PHY/NR_REFSIG/nr_mod_table.h index 4722ad7b7a..659d63c8d0 100644 --- a/openair1/PHY/NR_REFSIG/nr_mod_table.h +++ b/openair1/PHY/NR_REFSIG/nr_mod_table.h @@ -31,7 +31,7 @@ short nr_qpsk_mod_table[8]; -#if defined(__AVX2__) +#if 0//defined(__AVX2__) __m256i nr_qpsk_2byte_mod_table[65536]; #elif defined(__SSE2__) __m128i nr_qpsk_byte_mod_table[2048];