Mercurial > vba-linux
view src/win32/7zip/7z/CPP/7zip/Compress/BitlDecoder.cpp @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line source
1 // BitlDecoder.cpp3 #include "StdAfx.h"5 #include "BitlDecoder.h"7 namespace NBitl {9 Byte kInvertTable[256];11 struct CInverterTableInitializer12 {13 CInverterTableInitializer()14 {15 for (int i = 0; i < 256; i++)16 {17 int x = ((i & 0x55) << 1) | ((i & 0xAA) >> 1);18 x = ((x & 0x33) << 2) | ((x & 0xCC) >> 2);19 kInvertTable[i] = (Byte)(((x & 0x0F) << 4) | ((x & 0xF0) >> 4));20 }21 }22 } g_InverterTableInitializer;24 }