mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 16:07:05 -06:00
9.34
This commit is contained in:
committed by
Kornel Lesiński
parent
83f8ddcc5b
commit
f08f4dcc3c
38
CPP/7zip/Compress/BranchMisc.cpp
Executable file → Normal file
38
CPP/7zip/Compress/BranchMisc.cpp
Executable file → Normal file
@@ -6,32 +6,16 @@
|
||||
|
||||
#include "BranchMisc.h"
|
||||
|
||||
UInt32 CBC_ARM_Encoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::ARM_Convert(data, size, _bufferPos, 1); }
|
||||
#define SUB_FILTER_IMP2(name, coderStr, coderNum) \
|
||||
UInt32 CBC_ ## name ## coderStr::SubFilter(Byte *data, UInt32 size) \
|
||||
{ return (UInt32)::name ## Convert(data, size, _bufferPos, coderNum); }
|
||||
|
||||
UInt32 CBC_ARM_Decoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::ARM_Convert(data, size, _bufferPos, 0); }
|
||||
#define SUB_FILTER_IMP(name) \
|
||||
SUB_FILTER_IMP2(name, Encoder, 1) \
|
||||
SUB_FILTER_IMP2(name, Decoder, 0) \
|
||||
|
||||
UInt32 CBC_ARMT_Encoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::ARMT_Convert(data, size, _bufferPos, 1); }
|
||||
|
||||
UInt32 CBC_ARMT_Decoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::ARMT_Convert(data, size, _bufferPos, 0); }
|
||||
|
||||
UInt32 CBC_PPC_Encoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::PPC_Convert(data, size, _bufferPos, 1); }
|
||||
|
||||
UInt32 CBC_PPC_Decoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::PPC_Convert(data, size, _bufferPos, 0); }
|
||||
|
||||
UInt32 CBC_SPARC_Encoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::SPARC_Convert(data, size, _bufferPos, 1); }
|
||||
|
||||
UInt32 CBC_SPARC_Decoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::SPARC_Convert(data, size, _bufferPos, 0); }
|
||||
|
||||
UInt32 CBC_IA64_Encoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::IA64_Convert(data, size, _bufferPos, 1); }
|
||||
|
||||
UInt32 CBC_IA64_Decoder::SubFilter(Byte *data, UInt32 size)
|
||||
{ return (UInt32)::IA64_Convert(data, size, _bufferPos, 0); }
|
||||
SUB_FILTER_IMP(ARM_)
|
||||
SUB_FILTER_IMP(ARMT_)
|
||||
SUB_FILTER_IMP(PPC_)
|
||||
SUB_FILTER_IMP(SPARC_)
|
||||
SUB_FILTER_IMP(IA64_)
|
||||
|
||||
Reference in New Issue
Block a user