Imported Upstream version 9.20
[platform/upstream/7zip.git] / CPP / 7zip / Compress / BcjCoder.cpp
1 // BcjCoder.cpp\r
2 \r
3 #include "StdAfx.h"\r
4 \r
5 #include "BcjCoder.h"\r
6 \r
7 UInt32 CBCJ_x86_Encoder::SubFilter(Byte *data, UInt32 size)\r
8 {\r
9   return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 1);\r
10 }\r
11 \r
12 UInt32 CBCJ_x86_Decoder::SubFilter(Byte *data, UInt32 size)\r
13 {\r
14   return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 0);\r
15 }\r