Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
RishiRecon
GitHub Repository: RishiRecon/exploits
Path: blob/main/misc/emulator/xnes/snes9x/jma/lzma.cpp
28798 views
1
/*
2
Copyright (C) 2002 Andrea Mazzoleni ( http://advancemame.sf.net )
3
Copyright (C) 2001-4 Igor Pavlov ( http://www.7-zip.org )
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License version 2.1 as published by the Free Software Foundation.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Lesser General Public License for more details.
13
14
You should have received a copy of the GNU Lesser General Public
15
License along with this library; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*/
18
19
#include "lzma.h"
20
21
namespace NCompress {
22
namespace NLZMA {
23
24
UINT32 kDistStart[kDistTableSizeMax];
25
26
static class CConstInit
27
{
28
public:
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
43