- u32 main_freq_table[LZX_MAINTREE_NUM_SYMBOLS];
- u32 len_freq_table[LZX_LENTREE_NUM_SYMBOLS];
- u32 aligned_freq_table[LZX_ALIGNEDTREE_NUM_SYMBOLS];
+ freq_t main_freq_table[LZX_MAINTREE_NUM_SYMBOLS];
+ freq_t len_freq_table[LZX_LENTREE_NUM_SYMBOLS];
+ freq_t aligned_freq_table[LZX_ALIGNEDTREE_NUM_SYMBOLS];
/* If possible, encode this offset as a repeated offset. */
if (match_offset == queue->R0) {
/* If possible, encode this offset as a repeated offset. */
if (match_offset == queue->R0) {
} else if (match_offset == queue->R1) {
swap(queue->R0, queue->R1);
} else if (match_offset == queue->R1) {
swap(queue->R0, queue->R1);
} else if (match_offset == queue->R2) {
swap(queue->R0, queue->R2);
} else if (match_offset == queue->R2) {
swap(queue->R0, queue->R2);
} else {
/* Not a repeated offset. */
/* offsets of 0, 1, and 2 are reserved for the repeated offset
* codes, so non-repeated offsets must be encoded as 3+. The
* minimum offset is 1, so encode the offsets offset by 2. */
} else {
/* Not a repeated offset. */
/* offsets of 0, 1, and 2 are reserved for the repeated offset
* codes, so non-repeated offsets must be encoded as 3+. The
* minimum offset is 1, so encode the offsets offset by 2. */
{
/* Frequencies of the length symbols, including the RLE symbols (NOT the
* actual lengths themselves). */
{
/* Frequencies of the length symbols, including the RLE symbols (NOT the
* actual lengths themselves). */
u8 pretree_lens[LZX_PRETREE_NUM_SYMBOLS];
u16 pretree_codewords[LZX_PRETREE_NUM_SYMBOLS];
u8 output_syms[num_symbols * 2];
u8 pretree_lens[LZX_PRETREE_NUM_SYMBOLS];
u16 pretree_codewords[LZX_PRETREE_NUM_SYMBOLS];
u8 output_syms[num_symbols * 2];