Commit e4e08925 authored by Robert Schmidt's avatar Robert Schmidt

Speed up random TB filling in phy-test mode

parent 3571769b
...@@ -1478,6 +1478,10 @@ void nr_schedule_ue_spec(module_id_t module_id, ...@@ -1478,6 +1478,10 @@ void nr_schedule_ue_spec(module_id_t module_id,
header->L = htons(bufEnd-buf); header->L = htons(bufEnd-buf);
dlsch_total_bytes += bufEnd-buf; dlsch_total_bytes += bufEnd-buf;
for (; buf < bufEnd - 3; buf += 4) {
uint32_t *buf32 = (uint32_t *)buf;
*buf32 = lrand48();
}
for (; buf < bufEnd; buf++) for (; buf < bufEnd; buf++)
*buf = lrand48() & 0xff; *buf = lrand48() & 0xff;
} }
......
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