]> wimlib.net Git - wimlib/blobdiff - include/wimlib/lzx_constants.h
lzx_common: add constant for maximum number of extra offset bits
[wimlib] / include / wimlib / lzx_constants.h
index 788eded8cd03376a7cc2e239601f860362808c49..20c4c6241e60b75666c1996ba4acb096a952407d 100644 (file)
 /* The offset slot base for LZX_MIN_ALIGNED_OFFSET_SLOT.  */
 #define LZX_MIN_ALIGNED_OFFSET         14
 
+/* The maximum number of extra offset bits in verbatim blocks.  (One would need
+ * to subtract LZX_NUM_ALIGNED_OFFSET_BITS to get the number of extra offset
+ * bits in *aligned* blocks.)  */
+#define LZX_MAX_NUM_EXTRA_BITS         17
+
 /* Maximum lengths (in bits) for length-limited Huffman code construction.  */
 #define LZX_MAX_MAIN_CODEWORD_LEN      16
 #define LZX_MAX_LEN_CODEWORD_LEN       16