summaryrefslogtreecommitdiffstats
path: root/CPP/7zip/Compress/BcjCoder.cpp
blob: 108c573d5c0d71af472a863c12db508720b71381 (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);
}