summaryrefslogtreecommitdiffstats
path: root/hostTools/lzma/compress/LZMA.cpp
blob: 3774853571a17e36901d8cb1316961c3cc95725d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "LZMA.h"

namespace NCompress {
namespace NLZMA {

UINT32 kDistStart[kDistTableSizeMax];

static class CConstInit
{
public:
  CConstInit()
  {
    UINT32 aStartValue = 0;
    int i;
    for (i = 0; i < kDistTableSizeMax; i++)
    {
      kDistStart[i] = aStartValue;
      aStartValue += (1 << kDistDirectBits[i]);
    }
  }
} g_ConstInit;

}}