]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/lz/lz_encoder_private.h
Fix test_filter_flags to match the new restriction of lc+lp.
[icculus/xz.git] / src / liblzma / lz / lz_encoder_private.h
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       lz_encoder_private.h
4 /// \brief      Private definitions for LZ encoder
5 //
6 //  Copyright (C) 1999-2006 Igor Pavlov
7 //  Copyright (C) 2007 Lasse Collin
8 //
9 //  This library is free software; you can redistribute it and/or
10 //  modify it under the terms of the GNU Lesser General Public
11 //  License as published by the Free Software Foundation; either
12 //  version 2.1 of the License, or (at your option) any later version.
13 //
14 //  This library is distributed in the hope that it will be useful,
15 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 //  Lesser General Public License for more details.
18 //
19 ///////////////////////////////////////////////////////////////////////////////
20
21 #ifndef LZMA_LZ_ENCODER_PRIVATE_H
22 #define LZMA_LZ_ENCODER_PRIVATE_H
23
24 #include "lz_encoder.h"
25
26 /// Value used to indicate unused slot
27 #define EMPTY_HASH_VALUE 0
28
29 /// When the dictionary and hash variables need to be adjusted to prevent
30 /// integer overflows. Since we use uint32_t to store the offsets, half
31 /// of it is the biggest safe limit.
32 #define MAX_VAL_FOR_NORMALIZE (UINT32_MAX / 2)
33
34
35 struct lzma_coder_s {
36         lzma_next_coder next;
37         lzma_lz_encoder lz;
38 };
39
40 #endif