lzo: update to 2.09
[tomato.git] / release / src / router / lzo / src / config1f.h
blobd6ca61d99f623ff0cadf2d6763ead110687d9d96
1 /* config1f.h -- configuration for the LZO1F algorithm
3 This file is part of the LZO real-time data compression library.
5 Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
6 All Rights Reserved.
8 The LZO library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of
11 the License, or (at your option) any later version.
13 The LZO library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with the LZO library; see the file COPYING.
20 If not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 Markus F.X.J. Oberhumer
24 <markus@oberhumer.com>
25 http://www.oberhumer.com/opensource/lzo/
29 /* WARNING: this file should *not* be used by applications. It is
30 part of the implementation of the library and is subject
31 to change.
35 #ifndef __LZO_CONFIG1F_H
36 #define __LZO_CONFIG1F_H 1
38 #include "lzo_conf.h"
39 #include <lzo/lzo1f.h>
42 /***********************************************************************
44 ************************************************************************/
46 #define LZO_EOF_CODE 1
47 #undef LZO_DETERMINISTIC
49 #define M2_MAX_OFFSET 0x0800
50 #define M3_MAX_OFFSET 0x3fff
52 #define M2_MIN_LEN 3
53 #define M2_MAX_LEN 8
54 #define M3_MIN_LEN 3
55 #define M3_MAX_LEN 33
57 #define M3_MARKER 224
60 /***********************************************************************
62 ************************************************************************/
64 #ifndef MIN_LOOKAHEAD
65 #define MIN_LOOKAHEAD (M2_MAX_LEN + 1)
66 #endif
68 #if defined(LZO_NEED_DICT_H)
70 #ifndef LZO_HASH
71 #define LZO_HASH LZO_HASH_LZO_INCREMENTAL_A
72 #endif
73 #define DL_MIN_LEN M2_MIN_LEN
74 #include "lzo_dict.h"
76 #endif
80 #endif /* already included */
83 /* vim:set ts=4 sw=4 et: */