This commit is contained in:
Igor Pavlov
2003-12-11 00:00:00 +00:00
committed by Kornel Lesiński
commit 8c1b5c7b7e
982 changed files with 118799 additions and 0 deletions

34
7zip/Common/LSBFDecoder.cpp Executable file
View File

@@ -0,0 +1,34 @@
// Stream/LSBFDecoder.cpp
#include "StdAfx.h"
#include "LSBFDecoder.h"
namespace NStream {
namespace NLSBF {
BYTE kInvertTable[256];
class CInverterTableInitializer
{
public:
CInverterTableInitializer()
{
for(int i = 0; i < 256; i++)
{
BYTE b = BYTE(i);
BYTE bInvert = 0;
for(int j = 0; j < 8; j++)
{
bInvert <<= 1;
if (b & 1)
bInvert |= 1;
b >>= 1;
}
kInvertTable[i] = bInvert;
}
}
} g_InverterTableInitializer;
}}