summaryrefslogtreecommitdiffstats
path: root/CPP/7zip/Compress/BcjCoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Compress/BcjCoder.cpp')
-rwxr-xr-xCPP/7zip/Compress/BcjCoder.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/CPP/7zip/Compress/BcjCoder.cpp b/CPP/7zip/Compress/BcjCoder.cpp
new file mode 100755
index 0000000..108c573
--- /dev/null
+++ b/CPP/7zip/Compress/BcjCoder.cpp
@@ -0,0 +1,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);
+}