X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Flzx.h;h=715ec16bfefa62fef98ca43c07bd1964f7856c5c;hb=e20f8057569b65f75994e8d88c7a0be80a749888;hp=f72bfb1bc16921ec6a23ce285fa7b0b9424509f4;hpb=157d002da341c9109c5c065893ae82c6dbf5d4e8;p=wimlib diff --git a/include/wimlib/lzx.h b/include/wimlib/lzx.h index f72bfb1b..715ec16b 100644 --- a/include/wimlib/lzx.h +++ b/include/wimlib/lzx.h @@ -71,7 +71,7 @@ #define LZX_ALIGNEDCODE_NUM_SYMBOLS 8 #define LZX_ALIGNEDCODE_TABLEBITS 7 -#define LZX_ALIGNEDCODE_ELEMENT_SIZE 3 +#define LZX_ALIGNEDCODE_ELEMENT_SIZE 3 /* Maximum allowed length of Huffman codewords. */ #define LZX_MAX_MAIN_CODEWORD_LEN 16 @@ -134,7 +134,7 @@ lzx_get_position_slot_raw(unsigned formatted_offset) } } -extern bool lzx_window_size_valid(u32 window_size); +extern bool lzx_window_size_valid(size_t window_size); extern unsigned lzx_get_num_main_syms(u32 window_size); #define LZX_NUM_RECENT_OFFSETS 3 @@ -148,6 +148,8 @@ struct lzx_lru_queue { * as (n + LZX_OFFSET_OFFSET). */ #define LZX_OFFSET_OFFSET (LZX_NUM_RECENT_OFFSETS - 1) +/* Initialize the LZX least-recently-used match offset queue at the beginning of + * a new window for either decompression or compression. */ static inline void lzx_lru_queue_init(struct lzx_lru_queue *queue) {