1 ///////////////////////////////////////////////////////////////////////////////
3 /// \file lz_encoder_private.h
4 /// \brief Private definitions for LZ encoder
6 // Copyright (C) 1999-2006 Igor Pavlov
7 // Copyright (C) 2007 Lasse Collin
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.
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.
19 ///////////////////////////////////////////////////////////////////////////////
21 #ifndef LZMA_LZ_ENCODER_PRIVATE_H
22 #define LZMA_LZ_ENCODER_PRIVATE_H
24 #include "lz_encoder.h"
26 /// Value used to indicate unused slot
27 #define EMPTY_HASH_VALUE 0
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)