|
Packit Service |
5195f2 |
/* lzo1x_1k.c -- LZO1X-1(11) compression (needs only 8kB work memory)
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
This file is part of the LZO real-time data compression library.
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
|
|
Packit Service |
5195f2 |
All Rights Reserved.
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
The LZO library is free software; you can redistribute it and/or
|
|
Packit Service |
5195f2 |
modify it under the terms of the GNU General Public License as
|
|
Packit Service |
5195f2 |
published by the Free Software Foundation; either version 2 of
|
|
Packit Service |
5195f2 |
the License, or (at your option) any later version.
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
The LZO library is distributed in the hope that it will be useful,
|
|
Packit Service |
5195f2 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
5195f2 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
5195f2 |
GNU General Public License for more details.
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
You should have received a copy of the GNU General Public License
|
|
Packit Service |
5195f2 |
along with the LZO library; see the file COPYING.
|
|
Packit Service |
5195f2 |
If not, write to the Free Software Foundation, Inc.,
|
|
Packit Service |
5195f2 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
Markus F.X.J. Oberhumer
|
|
Packit Service |
5195f2 |
<markus@oberhumer.com>
|
|
Packit Service |
5195f2 |
http://www.oberhumer.com/opensource/lzo/
|
|
Packit Service |
5195f2 |
*/
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
#include "lzo_conf.h"
|
|
Packit Service |
5195f2 |
#if 1 && defined(UA_GET_LE32)
|
|
Packit Service |
5195f2 |
#undef LZO_DICT_USE_PTR
|
|
Packit Service |
5195f2 |
#define LZO_DICT_USE_PTR 0
|
|
Packit Service |
5195f2 |
#undef lzo_dict_t
|
|
Packit Service |
5195f2 |
#define lzo_dict_t lzo_uint16_t
|
|
Packit Service |
5195f2 |
#endif
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
#define LZO_NEED_DICT_H 1
|
|
Packit Service |
5195f2 |
#ifndef D_BITS
|
|
Packit Service |
5195f2 |
#define D_BITS 11
|
|
Packit Service |
5195f2 |
#endif
|
|
Packit Service |
5195f2 |
#define D_INDEX1(d,p) d = DM(DMUL(0x21,DX2(p,3,5)) >> 5)
|
|
Packit Service |
5195f2 |
#define D_INDEX2(d,p) d = d ^ D_MASK
|
|
Packit Service |
5195f2 |
#if 1
|
|
Packit Service |
5195f2 |
#define DINDEX(dv,p) DM(((DMUL(0x1824429d,dv)) >> (32-D_BITS)))
|
|
Packit Service |
5195f2 |
#else
|
|
Packit Service |
5195f2 |
#define DINDEX(dv,p) DM((dv) + ((dv) >> (32-D_BITS)))
|
|
Packit Service |
5195f2 |
#endif
|
|
Packit Service |
5195f2 |
#include "config1x.h"
|
|
Packit Service |
5195f2 |
#define LZO_DETERMINISTIC !(LZO_DICT_USE_PTR)
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
#ifndef DO_COMPRESS
|
|
Packit Service |
5195f2 |
#define DO_COMPRESS lzo1x_1_11_compress
|
|
Packit Service |
5195f2 |
#endif
|
|
Packit Service |
5195f2 |
|
|
Packit Service |
5195f2 |
#include "lzo1x_c.ch"
|