/third_party/lzma/CS/7zip/Compress/LZ/ |
H A D | LzBinTree.cs | 9 UInt32 _cyclicBufferPos;
10 UInt32 _cyclicBufferSize = 0;
11 UInt32 _matchMaxLen;
13 UInt32[] _son;
14 UInt32[] _hash;
16 UInt32 _cutValue = 0xFF;
17 UInt32 _hashMask;
18 UInt32 _hashSizeSum = 0;
22 const UInt32 kHash2Size = 1 << 10;
23 const UInt32 kHash3Siz [all...] |
H A D | LzInWindow.cs | 11 UInt32 _posLimit; // offset (from _buffer) of first byte when new block reading must be done
14 UInt32 _pointerToLastSafePosition;
16 public UInt32 _bufferOffset;
18 public UInt32 _blockSize; // Size of Allocated memory block
19 public UInt32 _pos; // offset (from _buffer) of curent byte
20 UInt32 _keepSizeBefore; // how many BYTEs must be kept in buffer before _pos
21 UInt32 _keepSizeAfter; // how many BYTEs must be kept buffer after _pos
22 public UInt32 _streamPos; // offset (from _buffer) of first not read byte from Stream
26 UInt32 offset = (UInt32)(_bufferOffse in MoveBlock() [all...] |
/third_party/lzma/C/ |
H A D | LzFindMt.h | 14 UInt32 numProcessedBlocks;
31 // UInt32 numBlocks_Sent;
34 typedef UInt32 * (*Mf_Mix_Matches)(void *p, UInt32 matchMinPos, UInt32 *distances);
39 typedef void (*Mf_GetHeads)(const Byte *buffer, UInt32 pos,
40 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHead [all...] |
H A D | LzFind.h | 11 typedef UInt32 CLzRef;
16 UInt32 pos;
17 UInt32 posLimit;
18 UInt32 streamPos; /* wrap over Zero is allowed (streamPos < pos). Use (UInt32)(streamPos - pos) */
19 UInt32 lenLimit;
21 UInt32 cyclicBufferPos;
22 UInt32 cyclicBufferSize; /* it must be = (historySize + 1) */
29 UInt32 matchMaxLen;
32 UInt32 hashMas [all...] |
H A D | LzFindOpt.c | 45 UInt32 * Z7_FASTCALL GetMatchesSpecN_1(const Byte *lenLimit, size_t pos, const Byte *cur, CLzRef *son,
46 UInt32 _cutValue, UInt32 *d, size_t _maxLen, const UInt32 *hash, const UInt32 *limit, const UInt32 *size, UInt32 *posRes)
50 UInt32 delta;
55 if (delta == 0 || delta > (UInt32)pos)
60 if (delta == (UInt32)po [all...] |
H A D | 7zCrc.c | 16 UInt32 Z7_FASTCALL CrcUpdateT1_BeT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
17 UInt32 Z7_FASTCALL CrcUpdateT1_BeT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
21 UInt32 Z7_FASTCALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
22 UInt32 Z7_FASTCAL [all...] |
H A D | LzFind.c | 19 #define kMaxValForNormalize ((UInt32)0)
20 // #define kMaxValForNormalize ((UInt32)(1 << 20) + 0xfff) // for debug
45 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
47 hv = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; }
50 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
52 temp ^= ((UInt32)cur[2] << 8); \
57 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
59 temp ^= ((UInt32)cur[2] << 8); \
65 #define HASH_ZIP_CALC hv = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
78 static int LzInWindow_Create2(CMatchFinder *p, UInt32 blockSiz [all...] |
H A D | LzFindMt.c | 34 #define kMtHashBlockSize ((UInt32)1 << 17)
39 #define kMtBtBlockSize ((UInt32)1 << 16)
63 UInt32 temp = MF_CRC[cur[0]] ^ cur[1]; \
65 h3 = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); }
69 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
70 h3 = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); }
73 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
75 temp ^= ((UInt32)cur[2] << 8); \
120 static UInt32 MtSync_GetNextBlock(CMtSync *p)
in MtSync_GetNextBlock() 122 UInt32 numBlock in MtSync_GetNextBlock() [all...] |
H A D | 7z.h | 27 UInt32 MethodID;
34 UInt32 InIndex;
35 UInt32 OutIndex;
44 UInt32 NumCoders;
45 UInt32 NumBonds;
46 UInt32 NumPackStreams;
47 UInt32 UnpackStream;
48 UInt32 PackStreams[SZ_NUM_PACK_STREAMS_IN_FOLDER_MAX];
58 UInt32 Low;
59 UInt32 Hig [all...] |
H A D | Bra.c | 17 #define BR_PC_INIT pc -= (UInt32)(SizeT)p;
18 #define BR_PC_GET (pc + (UInt32)(SizeT)p)
20 #define BR_PC_INIT pc += (UInt32)size;
21 #define BR_PC_GET (pc - (UInt32)(SizeT)(lim - p))
23 // #define BR_PC_GET (pc + (UInt32)(SizeT)(p - data))
27 // #define BR_CONVERT_VAL(v, c) if (!encoding) c = (UInt32)0 - c; v += c;
35 Byte *Z7_BRANCH_CONV(name)(Byte *p, SizeT size, UInt32 pc, int encoding)
40 Byte *m(name)(Byte *data, SizeT size, UInt32 pc) \
79 const UInt32 flag = (UInt32) in Z7_BRANCH_FUNC_MAIN() [all...] |
H A D | 7zCrcOpt.c | 12 UInt32 Z7_FASTCALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
13 UInt32 Z7_FASTCALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table)
in CrcUpdateT4() 20 v ^= *(const UInt32 *)(const void *)p;
in CrcUpdateT4() 32 UInt32 Z7_FASTCALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *tabl [all...] |
H A D | CpuArch.c | 84 void Z7_FASTCALL z7_x86_cpuid(UInt32 p[4], UInt32 func)
in z7_x86_cpuid() 91 UInt32 Z7_FASTCALL z7_x86_cpuid_GetMaxFunc(void)
in z7_x86_cpuid_GetMaxFunc() 95 UInt32 a;
in z7_x86_cpuid_GetMaxFunc() 118 UInt32 p[4];
in z7_x86_cpuid_GetMaxFunc() 131 void Z7_FASTCALL z7_x86_cpuid(UInt32 p[4], UInt32 func)
135 UInt32 Z7_FASTCALL z7_x86_cpuid_GetMaxFunc(void)
137 return (UInt32)__get_cpuid_max(0, NULL);
141 void Z7_FASTCALL z7_x86_cpuid(UInt32 [all...] |
/third_party/lzma/CPP/7zip/Archive/ |
H A D | IArchive.h | 58 const UInt32 kKeepName = 1 << 0; // keep name of file in archive name
59 const UInt32 kAltStreams = 1 << 1; // the handler supports alt streams
60 const UInt32 kNtSecure = 1 << 2; // the handler supports NT security
61 const UInt32 kFindSignature = 1 << 3; // the handler can find start of archive
62 const UInt32 kMultiSignature = 1 << 4; // there are several signatures
63 const UInt32 kUseGlobalOffset = 1 << 5; // the seek position of stream must be set as global offset
64 const UInt32 kStartOpen = 1 << 6; // call handler for each start position
65 const UInt32 kPureStartOpen = 1 << 7; // call handler only for start of file
66 const UInt32 kBackwardOpen = 1 << 8; // archive can be open backward
67 const UInt32 kPreAr [all...] |
/third_party/lzma/CS/7zip/Compress/LZMA/ |
H A D | LzmaEncoder.cs | 17 const UInt32 kIfinityPrice = 0xFFFFFFF;
29 UInt32 k = ((UInt32)1 << ((slotFast >> 1) - 1));
in Encoder() 30 for (UInt32 j = 0; j < k; j++, c++)
in Encoder() 35 static UInt32 GetPosSlot(UInt32 pos)
in GetPosSlot() 40 return (UInt32)(g_FastPos[pos >> 10] + 20);
in GetPosSlot() 41 return (UInt32)(g_FastPos[pos >> 20] + 40);
in GetPosSlot() 44 static UInt32 GetPosSlot2(UInt32 po [all...] |
/third_party/lzma/CPP/7zip/Archive/7z/ |
H A D | 7zHeader.h | 36 UInt32 NextHeaderCRC;
39 const UInt32 kStartHeaderSize = 20;
48 const UInt32 kFinishHeaderSize = kStartHeaderSize + 16;
100 const UInt32 k_Copy = 0;
101 const UInt32 k_Delta = 3;
102 const UInt32 k_ARM64 = 0xa;
104 const UInt32 k_LZMA2 = 0x21;
106 const UInt32 k_SWAP2 = 0x20302;
107 const UInt32 k_SWAP4 = 0x20304;
109 const UInt32 k_LZM [all...] |
/third_party/lzma/CS/7zip/Compress/RangeCoder/ |
H A D | RangeCoderBitTree.cs | 22 public void Encode(Encoder rangeEncoder, UInt32 symbol)
in Encode() 24 UInt32 m = 1;
in Encode() 28 UInt32 bit = (symbol >> bitIndex) & 1;
in Encode() 34 public void ReverseEncode(Encoder rangeEncoder, UInt32 symbol)
in ReverseEncode() 36 UInt32 m = 1;
in ReverseEncode() 37 for (UInt32 i = 0; i < NumBitLevels; i++)
in ReverseEncode() 39 UInt32 bit = symbol & 1;
in ReverseEncode() 46 public UInt32 GetPrice(UInt32 symbol)
in GetPrice() 48 UInt32 pric in GetPrice() [all...] |
/third_party/lzma/CPP/7zip/ |
H A D | ICoder.h | 34 x(Code(ISequentialInStream * const *inStreams, const UInt64 *const *inSizes, UInt32 numInStreams, \
35 ISequentialOutStream *const *outStreams, const UInt64 *const *outSizes, UInt32 numOutStreams, \
170 x(SetCoderPropertiesOpt(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps))
175 x(SetCoderProperties(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps))
185 x(SetDecoderProperties2(const Byte *data, UInt32 size))
204 x(SetNumberOfThreads(UInt32 numThreads))
208 x(SetFinishMode(UInt32 finishMode))
215 x(GetInStreamProcessedSize2(UInt32 streamIndex, UInt64 *value))
233 x(ReadUnusedFromInBuf(void *data, UInt32 size, UInt32 *processedSiz [all...] |
/third_party/lzma/CS/7zip/Compress/LzmaAlone/ |
H A D | LzmaBench.cs | 13 const UInt32 kAdditionalSize = (6 << 20);
14 const UInt32 kCompressedAdditionalSize = (1 << 10);
15 const UInt32 kMaxLzmaPropSize = 10;
19 UInt32 A1;
20 UInt32 A2;
23 public UInt32 GetRnd()
in GetRnd() 34 UInt32 Value;
41 public UInt32 GetRnd(int numBits)
in GetRnd() 43 UInt32 result;
in GetRnd() 46 result = Value & (((UInt32) in GetRnd() [all...] |
/third_party/lzma/CPP/7zip/Compress/ |
H A D | BranchMisc.cpp | 21 Z7_COM7F_IMF2(UInt32, CCoder::Filter(Byte *data, UInt32 size))
in Z7_COM7F_IMF2() 23 const UInt32 processed = (UInt32)(size_t)(BraFunc(data, size, _pc) - data);
in Z7_COM7F_IMF2() 39 Z7_COM7F_IMF2(UInt32, CEncoder::Filter(Byte *data, UInt32 size))
in Z7_COM7F_IMF2() 41 const UInt32 processed = (UInt32)(size_t)(Z7_BRANCH_CONV_ENC(ARM64)(data, size, _pc) - data);
in Z7_COM7F_IMF2() 46 Z7_COM7F_IMF(CEncoder::SetCoderProperties(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps))
in SetCoderProperties() 48 UInt32 p in SetCoderProperties() [all...] |
H A D | PpmdEncoder.cpp | 14 static const UInt32 kBufSize = (1 << 20);
22 if (MemSize == (UInt32)(Int32)-1)
in Normalize() 23 MemSize = (UInt32)1 << (level + 19);
in Normalize() 29 UInt32 m = (UInt32)1 << i;
in Normalize() 55 Z7_COM7F_IMF(CEncoder::SetCoderProperties(const PROPID *propIDs, const PROPVARIANT *coderProps, UInt32 numProps))
in SetCoderProperties() 59 for (UInt32 i = 0; i < numProps; i++)
in SetCoderProperties() 67 if (prop.vt == VT_UI8 && prop.uhVal.QuadPart < (UInt32)(Int32)-1)
in SetCoderProperties() 68 props.ReduceSize = (UInt32)prop.uhVal.QuadPart;
in SetCoderProperties() 75 const UInt32 kPpmd_Default_4 in SetCoderProperties() [all...] |
/third_party/lzma/CPP/7zip/UI/FileManager/ |
H A D | LangUtils.h | 17 UInt32 ControlID;
18 UInt32 LangID;
24 void LangSetDlgItemText(HWND dialog, UInt32 controlID, UInt32 langID);
25 void LangSetDlgItems(HWND dialog, const UInt32 *ids, unsigned numItems);
26 void LangSetDlgItems_Colon(HWND dialog, const UInt32 *ids, unsigned numItems);
27 void LangSetDlgItems_RemoveColon(HWND dialog, const UInt32 *ids, unsigned numItems);
28 void LangSetWindowText(HWND window, UInt32 langID);
30 UString LangString(UInt32 langID);
31 void AddLangString(UString &s, UInt32 langI [all...] |
/third_party/lzma/CPP/7zip/UI/Common/ |
H A D | PropIDUtils.cpp | 59 static void ConvertPosixAttribToString(char *s, UInt32 a) throw()
in ConvertPosixAttribToString() 73 a &= ~(UInt32)0xFFFF;
in ConvertPosixAttribToString() 82 void ConvertWinAttribToString(char *s, UInt32 wa) throw()
in ConvertWinAttribToString() 93 UInt32 posix = 0;
in ConvertWinAttribToString() 97 wa &= (UInt32)0x3FFF;
in ConvertWinAttribToString() 102 UInt32 flag = (1 << i);
in ConvertWinAttribToString() 186 const UInt32 a = prop.ulVal;
in ConvertPropertyToShortString2() 207 ConvertUInt32ToString((UInt32)(prop.uhVal.QuadPart >> 48), dest);
in ConvertPropertyToShortString2() 314 UInt32 n;
318 static int FindPairIndex(const CSecID2Name * pairs, unsigned num, UInt32 i [all...] |
/third_party/lzma/CPP/7zip/Common/ |
H A D | FilterCoder.cpp | 45 static const UInt32 kBufSize = 1 << 21;
47 Z7_COM7F_IMF(CFilterCoder::SetInBufSize(UInt32 , UInt32 size)) { _inBufSize = size; return S_OK; }
in SetInBufSize() 48 Z7_COM7F_IMF(CFilterCoder::SetOutBufSize(UInt32 , UInt32 size)) { _outBufSize = size; return S_OK; }
in SetOutBufSize() 52 UInt32 size = MyMin(_inBufSize, _outBufSize);
in Alloc() 56 const UInt32 kMinSize = 1 << 12;
in Alloc() 57 size &= ~(UInt32)(kMinSize - 1);
in Alloc() 116 UInt32 readPos = 0;
in Code() 117 UInt32 filterPo in Code() [all...] |
H A D | LimitedStreams.cpp | 9 Z7_COM7F_IMF(CLimitedSequentialInStream::Read(void *data, UInt32 size, UInt32 *processedSize))
in Read() 11 UInt32 realProcessedSize = 0;
in Read() 15 size = (UInt32)rem;
in Read() 30 Z7_COM7F_IMF(CLimitedInStream::Read(void *data, UInt32 size, UInt32 *processedSize))
in Read() 43 size = (UInt32)rem;
in Read() 59 Z7_COM7F_IMF(CLimitedInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition))
in Seek() 88 Z7_COM7F_IMF(CClusterInStream::Read(void *data, UInt32 size, UInt32 *processedSiz [all...] |
/third_party/lzma/CPP/7zip/Archive/Common/ |
H A D | CoderMixer2.h | 73 UInt32 PackIndex;
74 UInt32 UnpackIndex;
76 UInt32 Get_InIndex(bool encodeMode) const { return encodeMode ? UnpackIndex : PackIndex; }
77 UInt32 Get_OutIndex(bool encodeMode) const { return encodeMode ? PackIndex : UnpackIndex; }
83 UInt32 NumStreams;
91 CRecordVector<UInt32> PackStreams;
96 int FindBond_for_PackStream(UInt32 packStream) const
104 int FindBond_for_UnpackStream(UInt32 unpackStream) const
128 bool IsStream_in_PackStreams(UInt32 streamIndex) const
133 int FindStream_in_PackStreams(UInt32 streamInde [all...] |