phy: remove function pointers in frame param
1. Removed function pointers for functions get_samples_per_slot(), get_samples_slot_timestamp() and get_slot_from_timestamp() as it does not offer any advantage. The functions are now called directly from everywhere. 2. Optimized these functions by removing loops where ever possible.
This commit is contained in:
@@ -665,7 +665,7 @@ int main(int argc, char **argv){
|
||||
UE->X_u);
|
||||
|
||||
int prach_start = subframe * frame_parms->samples_per_subframe;
|
||||
int slot_start = frame_parms->get_samples_slot_timestamp(slot, frame_parms, 0);
|
||||
int slot_start = get_samples_slot_timestamp(frame_parms, slot);
|
||||
c16_t *tx[frame_parms->nb_antennas_rx];
|
||||
for (int i = 0; i < frame_parms->nb_antennas_rx; i++)
|
||||
tx[i] = txdata[i] + slot_start;
|
||||
|
||||
Reference in New Issue
Block a user