1/*
2Copyright (C) 2002 Andrea Mazzoleni ( http://advancemame.sf.net )
3Copyright (C) 2001-4 Igor Pavlov ( http://www.7-zip.org )
4
5This library is free software; you can redistribute it and/or
6modify it under the terms of the GNU Lesser General Public
7License version 2.1 as published by the Free Software Foundation.
8
9This library is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12Lesser General Public License for more details.
13
14You should have received a copy of the GNU Lesser General Public
15License along with this library; if not, write to the Free Software
16Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#include "lzma.h"
20
21namespace NCompress {
22namespace NLZMA {
23
24UINT32 kDistStart[kDistTableSizeMax];
25
26static class CConstInit
27{
28public:
29 CConstInit()
30 {
31 UINT32 aStartValue = 0;
32 int i;
33 for (i = 0; i < kDistTableSizeMax; i++)
34 {
35 kDistStart[i] = aStartValue;
36 aStartValue += (1 << kDistDirectBits[i]);
37 }
38 }
39} g_ConstInit;
40
41}}
42