summaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/7zip/win/CPP/7zip/Compress/BcjCoder.cpp
blob: 0e34ef48880b4bcd743ed05440ca7c62c8f5ee7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// BcjCoder.cpp

#include "StdAfx.h"

#include "BcjCoder.h"

UInt32 CBCJ_x86_Encoder::SubFilter(Byte *data, UInt32 size)
{
  return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 1);
}

UInt32 CBCJ_x86_Decoder::SubFilter(Byte *data, UInt32 size)
{
  return (UInt32)::x86_Convert(data, size, _bufferPos, &_prevMask, 0);
}