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

Fixing Alignment #283

Closed
wants to merge 1 commit into from
Closed

Fixing Alignment #283

wants to merge 1 commit into from

Conversation

fschramka
Copy link
Contributor

Fix for the alignment issues.

Added a precondition CHECK_BIT_STREAM_PRE that takes the bitstream struct and the number of bits needed for the operation. The assertion will fail if there is not enough space. This will only work in the non streaming mode.

Acn_AlignToNextDWord had code that only worked in the streaming mode but did not align anything - this code was missing in the Acn_AlignToNextWord function and was therefore removed.

The implementation is heavely based on the verified Scala implementation (non streaming mode only).

@maxime-esa
Copy link
Collaborator

@usr3-1415 can you check this PR ?

@fschramka fschramka closed this Feb 9, 2024
@fschramka fschramka deleted the AlignmentIssues branch February 9, 2024 19:00
@fschramka fschramka restored the AlignmentIssues branch February 16, 2024 16:21
@fschramka fschramka deleted the AlignmentIssues branch February 16, 2024 16:23
@fschramka
Copy link
Contributor Author

This fix is a part of the scala backend --> #278

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

Successfully merging this pull request may close these issues.

2 participants