zstd icon indicating copy to clipboard operation
zstd copied to clipboard

Improved the Bit manipulation of HUF_initFastDStream, Func

Open purple-claw opened this issue 1 year ago • 1 comments

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.

purple-claw avatar Mar 30 '24 03:03 purple-claw

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

terrelln avatar Apr 01 '24 20:04 terrelln