Coverage Report

Created: 2023-09-25 06:16

/src/lzo-2.10/src/compr1c.h
Line
Count
Source
1
/* compr1c.h --
2
3
   This file is part of the LZO real-time data compression library.
4
5
   Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
6
   All Rights Reserved.
7
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.
12
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.
17
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.
22
23
   Markus F.X.J. Oberhumer
24
   <markus@oberhumer.com>
25
   http://www.oberhumer.com/opensource/lzo/
26
 */
27
28
29
#define LZO_NEED_DICT_H 1
30
#include "config1c.h"
31
32
33
#if !defined(COMPRESS_ID)
34
#define COMPRESS_ID     LZO_PP_ECONCAT2(DD_BITS,CLEVEL)
35
#endif
36
37
38
#include "lzo1b_c.ch"
39
40
41
/***********************************************************************
42
//
43
************************************************************************/
44
45
#define LZO_COMPRESS \
46
    LZO_PP_ECONCAT3(lzo1c_,COMPRESS_ID,_compress)
47
48
#define LZO_COMPRESS_FUNC \
49
    LZO_PP_ECONCAT3(_lzo1c_,COMPRESS_ID,_compress_func)
50
51
52
53
/***********************************************************************
54
//
55
************************************************************************/
56
57
const lzo_compress_t LZO_COMPRESS_FUNC = do_compress;
58
59
LZO_PUBLIC(int)
60
LZO_COMPRESS ( const lzo_bytep in,  lzo_uint  in_len,
61
                     lzo_bytep out, lzo_uintp out_len,
62
                     lzo_voidp wrkmem )
63
1.97k
{
64
1.97k
    return _lzo1c_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
65
1.97k
}
lzo1c_1_compress
Line
Count
Source
63
502
{
64
502
    return _lzo1c_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
65
502
}
lzo1c_5_compress
Line
Count
Source
63
434
{
64
434
    return _lzo1c_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
65
434
}
lzo1c_9_compress
Line
Count
Source
63
515
{
64
515
    return _lzo1c_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
65
515
}
lzo1c_99_compress
Line
Count
Source
63
526
{
64
526
    return _lzo1c_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
65
526
}
66
67
68
/* vim:set ts=4 sw=4 et: */