#include "wimlib/lzx_constants.h"
#include "wimlib/types.h"
-//#define ENABLE_LZX_DEBUG
-#ifdef ENABLE_LZX_DEBUG
-# include "wimlib/assert.h"
-# define LZX_ASSERT wimlib_assert
-#else
-# define LZX_ASSERT(...)
-#endif
-
extern const u32 lzx_offset_slot_base[LZX_MAX_OFFSET_SLOTS + 1];
extern const u8 lzx_extra_offset_bits[LZX_MAX_OFFSET_SLOTS];
const struct lzx_lens * prev_lens,
struct lzx_output_bitstream * os)
{
- LZX_ASSERT(block_type == LZX_BLOCKTYPE_ALIGNED ||
- block_type == LZX_BLOCKTYPE_VERBATIM);
-
/* The first three bits indicate the type of block and are one of the
* LZX_BLOCKTYPE_* constants. */
lzx_write_bits(os, block_type, 3);
unsigned *rep_max_idx_ret)
{
STATIC_ASSERT(LZX_NUM_RECENT_OFFSETS == 3);
- LZX_ASSERT(bytes_remaining >= 2);
const unsigned max_len = min(bytes_remaining, LZX_MAX_MATCH_LEN);
const u16 next_2_bytes = load_u16_unaligned(in_next);