Convert Variable Width Bitstream (2-bit or 4-bit symbols) into Fixed Width

73 views Asked by At

I'm converting a variable width set of bit packed instructions (2 bits per symbol, but some symbols take two consecutive codepoints).

I'd like to convert this into a 3-bit fixed width code (there are 6 possible symbols) so I can do lookup table decoding.

Is there an efficient way to do this with SIMD? Most options seem to operate at the byte level.

0

There are 0 answers