Skip to content
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

Use XOR for ping-pong buffer in TBL #1514

Open
skliper opened this issue May 13, 2021 · 0 comments · May be fixed by #2351
Open

Use XOR for ping-pong buffer in TBL #1514

skliper opened this issue May 13, 2021 · 0 comments · May be fixed by #2351

Comments

@skliper
Copy link
Contributor

skliper commented May 13, 2021

Is your feature request related to a problem? Please describe.
Current pattern use for the active/inactive buffer index isn't as obvious/common (1 - index), examples but needs full scrub:

*WorkingBufferPtr = &RegRecPtr->Buffers[(1U - RegRecPtr->ActiveBufferIndex)];

InactiveBufferIndex = 1 - RegRecPtr->ActiveBufferIndex;

Describe the solution you'd like
index^1

Describe alternatives you've considered
Current implementation works, this is just style

Additional context
Code review

Requester Info
Jacob Hageman - NASA/GSFC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant