u32 codewords[XPRESS_NUM_SYMBOLS];
u8 lens[XPRESS_NUM_SYMBOLS];
struct xpress_record_ctx record_ctx;
u32 codewords[XPRESS_NUM_SYMBOLS];
u8 lens[XPRESS_NUM_SYMBOLS];
struct xpress_record_ctx record_ctx;
static void
xpress_write_matches_and_literals(struct output_bitstream *ostream,
const struct xpress_match matches[restrict],
static void
xpress_write_matches_and_literals(struct output_bitstream *ostream,
const struct xpress_match matches[restrict],
if (matches[i].offset) {
/* Real match */
xpress_write_match(matches[i], ostream, codewords, lens);
if (matches[i].offset) {
/* Real match */
xpress_write_match(matches[i], ostream, codewords, lens);
struct xpress_compressor *c = _c;
u8 *cptr = compressed_data;
struct output_bitstream ostream;
struct xpress_compressor *c = _c;
u8 *cptr = compressed_data;
struct output_bitstream ostream;
/* Flush any pending data and get the length of the compressed data. */
compressed_size = flush_output_bitstream(&ostream);
/* Flush any pending data and get the length of the compressed data. */
compressed_size = flush_output_bitstream(&ostream);