summaryrefslogtreecommitdiffstats
path: root/other-licenses/7zstub/src/7zip/Compress/Branch/x86.cpp
blob: 929484ad6d7b09dbb07fea1ba877cac25a15b016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// x86.cpp

#include "StdAfx.h"
#include "x86.h"

#include "Windows/Defs.h"

#include "BranchX86.c"

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

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