1 | /* lzo1x_d2.c -- LZO1X decompression with overrun testing |
---|
2 | |
---|
3 | This file is part of the LZO real-time data compression library. |
---|
4 | |
---|
5 | Copyright (C) 1996-2014 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 | #include "config1x.h" |
---|
30 | |
---|
31 | #define LZO_TEST_OVERRUN 1 |
---|
32 | #define DO_DECOMPRESS lzo1x_decompress_safe |
---|
33 | |
---|
34 | #include "lzo1x_d.ch" |
---|
35 | |
---|
36 | #if defined(LZO_ARCH_I386) && defined(LZO_USE_ASM) |
---|
37 | LZO_EXTERN(int) lzo1x_decompress_asm_safe |
---|
38 | (const lzo_bytep src, lzo_uint src_len, |
---|
39 | lzo_bytep dst, lzo_uintp dst_len, |
---|
40 | lzo_voidp wrkmem); |
---|
41 | LZO_PUBLIC(int) lzo1x_decompress_asm_safe |
---|
42 | (const lzo_bytep src, lzo_uint src_len, |
---|
43 | lzo_bytep dst, lzo_uintp dst_len, |
---|
44 | lzo_voidp wrkmem) |
---|
45 | { |
---|
46 | return lzo1x_decompress_safe(src, src_len, dst, dst_len, wrkmem); |
---|
47 | } |
---|
48 | LZO_EXTERN(int) lzo1x_decompress_asm_fast_safe |
---|
49 | (const lzo_bytep src, lzo_uint src_len, |
---|
50 | lzo_bytep dst, lzo_uintp dst_len, |
---|
51 | lzo_voidp wrkmem); |
---|
52 | LZO_PUBLIC(int) lzo1x_decompress_asm_fast_safe |
---|
53 | (const lzo_bytep src, lzo_uint src_len, |
---|
54 | lzo_bytep dst, lzo_uintp dst_len, |
---|
55 | lzo_voidp wrkmem) |
---|
56 | { |
---|
57 | return lzo1x_decompress_safe(src, src_len, dst, dst_len, wrkmem); |
---|
58 | } |
---|
59 | #endif |
---|