X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flzx-common.c;h=dfd6256b71b3396db6d7d7f847f826ae6482622d;hb=9bec19341aac9190cd0bd80a6937b02d923dd566;hp=a7bca000803447c6e24f32c6f3710b76c2e8b799;hpb=2b4f92cc80af257566c00e62fd3f0a7e3607416b;p=wimlib diff --git a/src/lzx-common.c b/src/lzx-common.c index a7bca000..dfd6256b 100644 --- a/src/lzx-common.c +++ b/src/lzx-common.c @@ -35,32 +35,32 @@ * - lzx_position_base is an index to the position slot bases * - lzx_extra_bits states how many bits of offset-from-base data is needed. */ -const u8 lzx_extra_bits[LZX_NUM_POSITION_SLOTS] = { +const u8 lzx_extra_bits[] = { 0 , 0 , 0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 5 , 6 , 6 , 7 , 7 , 8 , 8 , 9 , 9 , 10, 10, 11, 11, 12, 12, 13, 13, - /*14, 14, 15, 15, 16,*/ - /*16, 17, 17, 17, 17,*/ - /*17, 17, 17, 17, 17,*/ - /*17, 17, 17, 17, 17,*/ - /*17*/ + 14, 14, 15, 15, 16, + 16, 17, 17, 17, 17, + 17, 17, 17, 17, 17, + 17, 17, 17, 17, 17, + 17 }; #endif -const u32 lzx_position_base[LZX_NUM_POSITION_SLOTS] = { +const u32 lzx_position_base[] = { 0 , 1 , 2 , 3 , 4 , 6 , 8 , 12 , 16 , 24 , 32 , 48 , 64 , 96 , 128 , 192 , 256 , 384 , 512 , 768 , 1024 , 1536 , 2048 , 3072 , 4096 , 6144 , 8192 , 12288 , 16384 , 24576 , - /*32768 , 49152 , 65536 , 98304 , 131072 ,*/ - /*196608 , 262144 , 393216 , 524288 , 655360 ,*/ - /*786432 , 917504 , 1048576, 1179648, 1310720,*/ - /*1441792, 1572864, 1703936, 1835008, 1966080,*/ - /*2097152*/ + 32768 , 49152 , 65536 , 98304 , 131072 , + 196608 , 262144 , 393216 , 524288 , 655360 , + 786432 , 917504 , 1048576, 1179648, 1310720, + 1441792, 1572864, 1703936, 1835008, 1966080, + 2097152 };