diabling avx2 for qpsk

This commit is contained in:
Sakthivel Velumani
2020-08-14 16:31:37 +02:00
parent 8aa88999fc
commit 9c01cc66ea
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -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;
+1 -1
View File
@@ -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++) {
+1 -1
View File
@@ -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];