Commit c885001c authored by Quency Lin's avatar Quency Lin Committed by francescomani

misc: Use const, macro, shortcuts in nr_generate_pdsch()

parent 99413989
...@@ -514,7 +514,9 @@ void nr_generate_pdsch(processingData_L1tx_t *msgTx, int frame, int slot) ...@@ -514,7 +514,9 @@ void nr_generate_pdsch(processingData_L1tx_t *msgTx, int frame, int slot)
memcpy(&txdataF[ant][txdataF_offset_per_symbol + subCarrier], memcpy(&txdataF[ant][txdataF_offset_per_symbol + subCarrier],
&txdataF_precoding[ant][l_symbol][subCarrier], &txdataF_precoding[ant][l_symbol][subCarrier],
neg_length * sizeof(**txdataF)); neg_length * sizeof(**txdataF));
memcpy(&txdataF[ant][txdataF_offset_per_symbol], &txdataF_precoding[ant][l_symbol], pos_length * sizeof(**txdataF)); memcpy(&txdataF[ant][txdataF_offset_per_symbol],
&txdataF_precoding[ant][l_symbol],
pos_length * sizeof(**txdataF));
} else { } else {
memset(&txdataF[ant][txdataF_offset_per_symbol + subCarrier], memset(&txdataF[ant][txdataF_offset_per_symbol + subCarrier],
0, 0,
......
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