Blame src/config1x.h

Packit 679830
/* config1x.h -- configuration for the LZO1X algorithm
Packit 679830
Packit 679830
   This file is part of the LZO real-time data compression library.
Packit 679830
Packit 679830
   Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
Packit 679830
   All Rights Reserved.
Packit 679830
Packit 679830
   The LZO library is free software; you can redistribute it and/or
Packit 679830
   modify it under the terms of the GNU General Public License as
Packit 679830
   published by the Free Software Foundation; either version 2 of
Packit 679830
   the License, or (at your option) any later version.
Packit 679830
Packit 679830
   The LZO library is distributed in the hope that it will be useful,
Packit 679830
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 679830
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 679830
   GNU General Public License for more details.
Packit 679830
Packit 679830
   You should have received a copy of the GNU General Public License
Packit 679830
   along with the LZO library; see the file COPYING.
Packit 679830
   If not, write to the Free Software Foundation, Inc.,
Packit 679830
   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 679830
Packit 679830
   Markus F.X.J. Oberhumer
Packit 679830
   <markus@oberhumer.com>
Packit 679830
   http://www.oberhumer.com/opensource/lzo/
Packit 679830
 */
Packit 679830
Packit 679830
Packit 679830
/* WARNING: this file should *not* be used by applications. It is
Packit 679830
   part of the implementation of the library and is subject
Packit 679830
   to change.
Packit 679830
 */
Packit 679830
Packit 679830
Packit 679830
#ifndef __LZO_CONFIG1X_H
Packit 679830
#define __LZO_CONFIG1X_H 1
Packit 679830
Packit 679830
#if !defined(LZO1X) && !defined(LZO1Y) && !defined(LZO1Z)
Packit 679830
#  define LZO1X 1
Packit 679830
#endif
Packit 679830
Packit 679830
#include "lzo_conf.h"
Packit 679830
#if !defined(__LZO_IN_MINILZO)
Packit 679830
#include "lzo/lzo1x.h"
Packit 679830
#endif
Packit 679830
Packit 679830
Packit 679830
/***********************************************************************
Packit 679830
//
Packit 679830
************************************************************************/
Packit 679830
Packit 679830
#ifndef LZO_EOF_CODE
Packit 679830
#define LZO_EOF_CODE 1
Packit 679830
#endif
Packit 679830
#undef LZO_DETERMINISTIC
Packit 679830
Packit 679830
#define M1_MAX_OFFSET   0x0400
Packit 679830
#ifndef M2_MAX_OFFSET
Packit 679830
#define M2_MAX_OFFSET   0x0800
Packit 679830
#endif
Packit 679830
#define M3_MAX_OFFSET   0x4000
Packit 679830
#define M4_MAX_OFFSET   0xbfff
Packit 679830
Packit 679830
#define MX_MAX_OFFSET   (M1_MAX_OFFSET + M2_MAX_OFFSET)
Packit 679830
Packit 679830
#define M1_MIN_LEN      2
Packit 679830
#define M1_MAX_LEN      2
Packit 679830
#define M2_MIN_LEN      3
Packit 679830
#ifndef M2_MAX_LEN
Packit 679830
#define M2_MAX_LEN      8
Packit 679830
#endif
Packit 679830
#define M3_MIN_LEN      3
Packit 679830
#define M3_MAX_LEN      33
Packit 679830
#define M4_MIN_LEN      3
Packit 679830
#define M4_MAX_LEN      9
Packit 679830
Packit 679830
#define M1_MARKER       0
Packit 679830
#define M2_MARKER       64
Packit 679830
#define M3_MARKER       32
Packit 679830
#define M4_MARKER       16
Packit 679830
Packit 679830
Packit 679830
/***********************************************************************
Packit 679830
//
Packit 679830
************************************************************************/
Packit 679830
Packit 679830
#ifndef MIN_LOOKAHEAD
Packit 679830
#define MIN_LOOKAHEAD       (M2_MAX_LEN + 1)
Packit 679830
#endif
Packit 679830
Packit 679830
#if defined(LZO_NEED_DICT_H)
Packit 679830
Packit 679830
#ifndef LZO_HASH
Packit 679830
#define LZO_HASH            LZO_HASH_LZO_INCREMENTAL_B
Packit 679830
#endif
Packit 679830
#define DL_MIN_LEN          M2_MIN_LEN
Packit 679830
#include "lzo_dict.h"
Packit 679830
Packit 679830
#endif
Packit 679830
Packit 679830
Packit 679830
Packit 679830
#endif /* already included */
Packit 679830
Packit 679830
/*
Packit 679830
vi:ts=4:et
Packit 679830
*/
Packit 679830