Commit 9c01cc66 authored by Sakthivel Velumani's avatar Sakthivel Velumani

diabling avx2 for qpsk

parent 8aa88999
......@@ -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;
......
......@@ -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++) {
......
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment