X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flzx_common.c;h=1baeebe7469ed2fb585d53e7c8dd3e761bb1faa3;hp=0993f60756d869dccad03a17ed54714f77a32056;hb=de567a8c5dcd0910a8c762d75bf11b9c9683396c;hpb=3e8aa757aaa63297f0d54007adf46411778fb6a8 diff --git a/src/lzx_common.c b/src/lzx_common.c index 0993f607..1baeebe7 100644 --- a/src/lzx_common.c +++ b/src/lzx_common.c @@ -25,12 +25,6 @@ #include -#include "wimlib/bitops.h" -#include "wimlib/endianness.h" -#include "wimlib/lzx_common.h" -#include "wimlib/unaligned.h" -#include "wimlib/util.h" - #ifdef __SSE2__ # include #endif @@ -39,6 +33,12 @@ # include #endif +#include "wimlib/bitops.h" +#include "wimlib/endianness.h" +#include "wimlib/lzx_common.h" +#include "wimlib/unaligned.h" +#include "wimlib/util.h" + /* Mapping: offset slot => first match offset that uses that offset slot. */ const u32 lzx_offset_slot_base[LZX_MAX_OFFSET_SLOTS + 1] = { @@ -57,7 +57,7 @@ const u32 lzx_offset_slot_base[LZX_MAX_OFFSET_SLOTS + 1] = { /* Mapping: offset slot => how many extra bits must be read and added to the * corresponding offset slot base to decode the match offset. */ -const u8 lzx_extra_offset_bits[LZX_MAX_OFFSET_SLOTS + 1] = { +const u8 lzx_extra_offset_bits[LZX_MAX_OFFSET_SLOTS] = { 0 , 0 , 0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 5 , 6 , @@ -68,7 +68,6 @@ const u8 lzx_extra_offset_bits[LZX_MAX_OFFSET_SLOTS + 1] = { 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, - 17 }; /* Round the specified buffer size up to the next valid LZX window size, and