summaryrefslogtreecommitdiffstats
path: root/hostTools/lzma/compress/LZMA.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hostTools/lzma/compress/LZMA.cpp')
-rw-r--r--hostTools/lzma/compress/LZMA.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/hostTools/lzma/compress/LZMA.cpp b/hostTools/lzma/compress/LZMA.cpp
new file mode 100644
index 0000000..3774853
--- /dev/null
+++ b/hostTools/lzma/compress/LZMA.cpp
@@ -0,0 +1,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;
+
+}}