From b0257a60d3e107a2b39603e3f7ad9cb6bc1e487d Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 6 Sep 2014 12:40:58 -0500 Subject: [PATCH] Move XPRESS_TABLEBITS to xpress-decompress.c --- include/wimlib/xpress.h | 1 - src/xpress-decompress.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wimlib/xpress.h b/include/wimlib/xpress.h index a7113153..2163c550 100644 --- a/include/wimlib/xpress.h +++ b/include/wimlib/xpress.h @@ -7,7 +7,6 @@ #define XPRESS_NUM_CHARS 256 #define XPRESS_NUM_SYMBOLS 512 #define XPRESS_MAX_CODEWORD_LEN 15 -#define XPRESS_TABLEBITS 12 #define XPRESS_END_OF_DATA 256 diff --git a/src/xpress-decompress.c b/src/xpress-decompress.c index 8d774109..05d0c491 100644 --- a/src/xpress-decompress.c +++ b/src/xpress-decompress.c @@ -74,6 +74,9 @@ #include "wimlib/error.h" #include "wimlib/xpress.h" +/* This value is chosen for fast decompression. */ +#define XPRESS_TABLEBITS 12 + /* * Decodes a symbol @sym that begins an XPRESS match. * -- 2.46.1