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

Improved the Bit manipulation of HUF_initFastDStream, Func #4002

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

purple-claw
Copy link

return (value << bitsConsumed) | (ip[bitsConsumed >> 3] >> (8 - bits Consumed & 7));

Effeciently performing a bitwise operation to combine two values, value and a portion of the ip array. It shifts value left by bitsConsumed bits, then ORs that with the right-shifted portion of ip.

@terrelln
Copy link
Contributor

terrelln commented Apr 1, 2024

This breaks decompression. I don't understand the goal of this PR. Can you explain what you are trying to accomplish?

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

Successfully merging this pull request may close these issues.

3 participants