On 12/03/2025 04:10, Andreas Rheinhardt wrote: > Patches attached. > > - Andreas First patch is wild, its surprising no one considered inverting the way decoder parses codes for an encoder yet. Rather than ORing and using put_bits63, I think it would make more sense to write out each chunk using put_bits sequentially. It might be possible to reverse the lookups such that you get the MSBs first so you wouldn't need to reverse them out of place in a small array. But either way, LGTM. Feel free to explore this in a follow-up. Second patch seems a bit pointless. It's just one single call you're uninlining? Chasing to save a few extra bytes of binary surely don't deserve having a wrapper function for uninlining.