]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/common/features.c
Remove some redundant code from LZMA encoder.
[icculus/xz.git] / src / liblzma / common / features.c
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       features.c
4 /// \brief      Information about features enabled at compile time
5 //
6 //  Copyright (C) 2007 Lasse Collin
7 //
8 //  This library is free software; you can redistribute it and/or
9 //  modify it under the terms of the GNU Lesser General Public
10 //  License as published by the Free Software Foundation; either
11 //  version 2.1 of the License, or (at your option) any later version.
12 //
13 //  This 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 GNU
16 //  Lesser General Public License for more details.
17 //
18 ///////////////////////////////////////////////////////////////////////////////
19
20 #include "common.h"
21
22
23 static const lzma_vli filters[] = {
24 #ifdef HAVE_FILTER_SUBBLOCK
25         LZMA_FILTER_SUBBLOCK,
26 #endif
27
28 #ifdef HAVE_FILTER_X86
29         LZMA_FILTER_X86,
30 #endif
31
32 #ifdef HAVE_FILTER_POWERPC
33         LZMA_FILTER_POWERPC,
34 #endif
35
36 #ifdef HAVE_FILTER_IA64
37         LZMA_FILTER_IA64,
38 #endif
39
40 #ifdef HAVE_FILTER_ARM
41         LZMA_FILTER_ARM,
42 #endif
43
44 #ifdef HAVE_FILTER_ARMTHUMB
45         LZMA_FILTER_ARMTHUMB,
46 #endif
47
48 #ifdef HAVE_FILTER_SPARC
49         LZMA_FILTER_SPARC,
50 #endif
51
52 #ifdef HAVE_FILTER_DELTA
53         LZMA_FILTER_DELTA,
54 #endif
55
56 #ifdef HAVE_FILTER_LZMA
57         LZMA_FILTER_LZMA,
58 #endif
59
60         LZMA_VLI_VALUE_UNKNOWN
61 };
62
63
64 LZMA_API const lzma_vli *const lzma_available_filter_encoders = filters;
65
66 LZMA_API const lzma_vli *const lzma_available_filter_decoders = filters;