-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applications: sdp: mspi: minor cleanup in RX #21177
Conversation
Move parts of code to static inline functions. Optimize execution in RX path - no need to check `i` on every loop. Signed-off-by: Marcin Szymczyk <marcin.szymczyk@nordicsemi.no>
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: e0f69e65d9c0b4e1db5e378cf93f7a85154bd829 more detailssdk-nrf:
Github labels
List of changed files detected by CI (2)
Outputs:ToolchainVersion: 4ffa2202d5 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR here. |
uint32_t i = 1; | ||
for (; i < hrt_xfer_params->xfer_data[HRT_FE_DATA].word_count; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see i
being used anywhere outside of this loop, so these lines can be merged:
uint32_t i = 1; | |
for (; i < hrt_xfer_params->xfer_data[HRT_FE_DATA].word_count; i++) { | |
for (uint32_t i = 1; i < hrt_xfer_params->xfer_data[HRT_FE_DATA].word_count; i++) { |
Cleanups applied on other PRs |
Move parts of code to static inline functions.
Optimize execution in RX path - no need to check
i
on every loop.