static inline void
flush_bits(struct output_bitstream *ostream)
{
- *(u16*)ostream->bit_output = cpu_to_le16(ostream->bitbuf);
+ *(le16*)ostream->bit_output = cpu_to_le16(ostream->bitbuf);
ostream->bit_output = ostream->next_bit_output;
ostream->next_bit_output = ostream->output;
ostream->output += 2;
void
make_canonical_huffman_code(unsigned num_syms,
unsigned max_codeword_len,
- const freq_t * restrict freq_tab,
- u8 * restrict lens,
- u16 * restrict codewords)
+ const freq_t freq_tab[restrict],
+ u8 lens[restrict],
+ u16 codewords[restrict])
{
/* We require at least 2 possible symbols in the alphabet to produce a
* valid Huffman decoding table. It is allowed that fewer than 2 symbols