Commit 62e8431c authored by Laurent THOMAS's avatar Laurent THOMAS

remove code obfuscation

parent 25652c5a
...@@ -678,16 +678,16 @@ int main(int argc, char **argv){ ...@@ -678,16 +678,16 @@ int main(int argc, char **argv){
for (i = 0; i < frame_parms->samples_per_subframe; i++) { for (i = 0; i < frame_parms->samples_per_subframe; i++) {
for (aa=0; aa<1; aa++) { for (aa=0; aa<1; aa++) {
if (awgn_flag == 0) { if (awgn_flag == 0) {
s_re[aa][i] = ((double)(((short *)&txdata[aa][prach_start]))[(i<<1)]); s_re[aa][i] = txdata[aa][prach_start + i].r;
s_im[aa][i] = ((double)(((short *)&txdata[aa][prach_start]))[(i<<1)+1]); s_im[aa][i] = txdata[aa][prach_start + i].i;
} else { } else {
for (aarx=0; aarx<gNB->frame_parms.nb_antennas_rx; aarx++) { for (aarx=0; aarx<gNB->frame_parms.nb_antennas_rx; aarx++) {
if (aa==0) { if (aa==0) {
r_re[aarx][i] = ((double)(((short *)&txdata[aa][prach_start]))[(i<<1)]); r_re[aa][i] = txdata[aa][prach_start + i].r;
r_im[aarx][i] = ((double)(((short *)&txdata[aa][prach_start]))[(i<<1)+1]); r_im[aa][i] = txdata[aa][prach_start + i].i;
} else { } else {
r_re[aarx][i] += ((double)(((short *)&txdata[aa][prach_start]))[(i<<1)]); r_re[aa][i] += txdata[aa][prach_start + i].r;
r_im[aarx][i] += ((double)(((short *)&txdata[aa][prach_start]))[(i<<1)+1]); r_im[aa][i] += txdata[aa][prach_start + i].i;
} }
} }
} }
......
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