Unrolled arithmetic decoder.