/external/lzma/CS/7zip/Compress/LZ/ |
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 kHash3Size = 1 << 16; [all …]
|
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)(_bufferOffset) + _pos - _keepSizeBefore; in MoveBlock() 31 UInt32 numBytes = (UInt32)(_bufferOffset) + _streamPos - offset; in MoveBlock() [all …]
|
/external/lzma/C/ |
D | LzFind.h | 11 typedef UInt32 CLzRef; 16 UInt32 pos; 17 UInt32 posLimit; 18 UInt32 streamPos; 19 UInt32 lenLimit; 21 UInt32 cyclicBufferPos; 22 UInt32 cyclicBufferSize; /* it must be = (historySize + 1) */ 29 UInt32 matchMaxLen; 32 UInt32 hashMask; 33 UInt32 cutValue; [all …]
|
D | LzFindMt.h | 36 UInt32 numProcessedBlocks; 39 typedef UInt32 * (*Mf_Mix_Matches)(void *p, UInt32 matchMinPos, UInt32 *distances); 44 typedef void (*Mf_GetHeads)(const Byte *buffer, UInt32 pos, 45 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc); 51 UInt32 *btBuf; 52 UInt32 btBufPos; 53 UInt32 btBufPosLimit; 54 UInt32 lzPos; 55 UInt32 btNumAvailBytes; 57 UInt32 *hash; [all …]
|
D | 7zCrc.c | 18 …UInt32 MY_FAST_CALL CrcUpdateT1_BeT4(UInt32 v, const void *data, size_t size, const UInt32 *table); 19 …UInt32 MY_FAST_CALL CrcUpdateT1_BeT8(UInt32 v, const void *data, size_t size, const UInt32 *table); 23 UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table); 24 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table); 27 typedef UInt32 (MY_FAST_CALL *CRC_FUNC)(UInt32 v, const void *data, size_t size, const UInt32 *tabl… 33 UInt32 g_CrcTable[256 * CRC_NUM_TABLES]; 35 UInt32 MY_FAST_CALL CrcUpdate(UInt32 v, const void *data, size_t size) in CrcUpdate() 40 UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size) in CrcCalc() 47 UInt32 MY_FAST_CALL CrcUpdateT1(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT1() 58 UInt32 i; in CrcGenerateTable() [all …]
|
D | Bra.c | 9 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) in ARM_Convert() 31 UInt32 v = GetUi32(p - 4); in ARM_Convert() 33 v += ip + (UInt32)(p - data); in ARM_Convert() 52 UInt32 v = GetUi32(p - 4); in ARM_Convert() 54 v -= ip + (UInt32)(p - data); in ARM_Convert() 64 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) in ARMT_Convert() 76 UInt32 b1; in ARMT_Convert() 79 UInt32 b3; in ARMT_Convert() 90 UInt32 v = in ARMT_Convert() 91 ((UInt32)b1 << 19) in ARMT_Convert() [all …]
|
D | LzFind.c | 12 #define kMaxValForNormalize ((UInt32)0xFFFFFFFF) 14 #define kNormalizeMask (~(UInt32)(kNormalizeStepMin - 1)) 15 #define kMaxHistorySize ((UInt32)7 << 29) 30 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAllocPtr alloc) in LzInWindow_Create() 32 UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv; in LzInWindow_Create() 49 UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } in MatchFinder_GetNumAvailableBytes() 51 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) in MatchFinder_ReduceOffsets() 67 UInt32 curSize = 0xFFFFFFFF - (p->streamPos - p->pos); in MatchFinder_ReadBlock() 69 curSize = (UInt32)p->directInputRem; in MatchFinder_ReadBlock() 92 p->streamPos += (UInt32)size; in MatchFinder_ReadBlock() [all …]
|
D | LzFindMt.c | 55 UInt32 myNumBlocks = p->numProcessedBlocks; in MtSync_StopWriting() 104 static SRes MtSync_Create2(CMtSync *p, THREAD_FUNC_TYPE startAddress, void *obj, UInt32 numBlocks) in MtSync_Create2() 126 static SRes MtSync_Create(CMtSync *p, THREAD_FUNC_TYPE startAddress, void *obj, UInt32 numBlocks) in MtSync_Create() 139 static void GetHeads ## name(const Byte *p, UInt32 pos, \ 140 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc) \ 142 const UInt32 value = (v); p++; *heads++ = pos - hash[value]; hash[value] = pos++; } } 146 DEF_GetHeads2(2, (p[0] | ((UInt32)p[1] << 8)), UNUSED_VAR(hashMask); UNUSED_VAR(crc); ) 147 DEF_GetHeads(3, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8)) & hashMask) 148 DEF_GetHeads(4, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ (crc[p[3]] << 5)) & hashMask) 149 DEF_GetHeads(4b, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ ((UInt32)p[3] << 16)) & hashMask) [all …]
|
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 High; [all …]
|
D | Aes.c | 9 static UInt32 T[256 * 4]; 28 void MY_FAST_CALL AesCbc_Encode(UInt32 *ivAes, Byte *data, size_t numBlocks); 29 void MY_FAST_CALL AesCbc_Decode(UInt32 *ivAes, Byte *data, size_t numBlocks); 30 void MY_FAST_CALL AesCtr_Code(UInt32 *ivAes, Byte *data, size_t numBlocks); 32 void MY_FAST_CALL AesCbc_Encode_Intel(UInt32 *ivAes, Byte *data, size_t numBlocks); 33 void MY_FAST_CALL AesCbc_Decode_Intel(UInt32 *ivAes, Byte *data, size_t numBlocks); 34 void MY_FAST_CALL AesCtr_Code_Intel(UInt32 *ivAes, Byte *data, size_t numBlocks); 40 static UInt32 D[256 * 4]; 47 #define Ui32(a0, a1, a2, a3) ((UInt32)(a0) | ((UInt32)(a1) << 8) | ((UInt32)(a2) << 16) | ((UInt32)… 69 UInt32 a1 = Sbox[i]; in AesGenTables() [all …]
|
D | CpuArch.h | 202 #define GetUi32(p) (*(const UInt32 *)(const void *)(p)) 206 #define SetUi32(p, v) { *(UInt32 *)(p) = (v); } 217 ((UInt32)((const Byte *)(p))[1] << 8) | \ 218 ((UInt32)((const Byte *)(p))[2] << 16) | \ 219 ((UInt32)((const Byte *)(p))[3] << 24)) 223 #define SetUi16(p, v) { Byte *_ppp_ = (Byte *)(p); UInt32 _vvv_ = (v); \ 227 #define SetUi32(p, v) { Byte *_ppp_ = (Byte *)(p); UInt32 _vvv_ = (v); \ 234 SetUi32(_ppp2_ , (UInt32)_vvv2_); \ 235 SetUi32(_ppp2_ + 4, (UInt32)(_vvv2_ >> 32)); } 256 #define GetBe32(p) _byteswap_ulong(*(const UInt32 *)(const Byte *)(p)) [all …]
|
D | 7zCrcOpt.c | 12 UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT4() 19 v ^= *(const UInt32 *)p; in CrcUpdateT4() 31 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT8() 38 UInt32 d; in CrcUpdateT8() 39 v ^= *(const UInt32 *)p; in CrcUpdateT8() 45 d = *((const UInt32 *)p + 1); in CrcUpdateT8() 66 UInt32 MY_FAST_CALL CrcUpdateT1_BeT4(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT1_BeT4() 75 v ^= *(const UInt32 *)p; in CrcUpdateT1_BeT4() 87 UInt32 MY_FAST_CALL CrcUpdateT1_BeT8(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT1_BeT8() 96 UInt32 d; in CrcUpdateT1_BeT8() [all …]
|
/external/lzma/CS/7zip/Compress/LZMA/ |
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 pos) in GetPosSlot2() 47 return (UInt32)(g_FastPos[pos >> 6] + 12); in GetPosSlot2() 49 return (UInt32)(g_FastPos[pos >> 16] + 32); in GetPosSlot2() 50 return (UInt32)(g_FastPos[pos >> 26] + 52); in GetPosSlot2() [all …]
|
/external/lzma/CPP/7zip/Archive/ |
D | IArchive.h | 25 const UInt32 kKeepName = 1 << 0; // keep name of file in archive name 26 const UInt32 kAltStreams = 1 << 1; // the handler supports alt streams 27 const UInt32 kNtSecure = 1 << 2; // the handler supports NT security 28 const UInt32 kFindSignature = 1 << 3; // the handler can find start of archive 29 const UInt32 kMultiSignature = 1 << 4; // there are several signatures 30 …const UInt32 kUseGlobalOffset = 1 << 5; // the seek position of stream must be set as global offs… 31 const UInt32 kStartOpen = 1 << 6; // call handler for each start position 32 const UInt32 kPureStartOpen = 1 << 7; // call handler only for start of file 33 const UInt32 kBackwardOpen = 1 << 8; // archive can be open backward 34 …const UInt32 kPreArc = 1 << 9; // such archive can be stored before real archive (like S… [all …]
|
/external/lzma/CPP/7zip/Archive/7z/ |
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; 103 const UInt32 k_LZMA2 = 0x21; 105 const UInt32 k_SWAP2 = 0x20302; 106 const UInt32 k_SWAP4 = 0x20304; 108 const UInt32 k_LZMA = 0x30101; 109 const UInt32 k_PPMD = 0x30401; [all …]
|
/external/lzma/CS/7zip/Compress/RangeCoder/ |
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 price = 0; in GetPrice() 49 UInt32 m = 1; in GetPrice() [all …]
|
/external/lzma/CPP/7zip/Compress/ |
D | Bcj2Coder.h | 19 UInt32 _bufsCurSizes[BCJ2_NUM_STREAMS + 1]; 20 UInt32 _bufsNewSizes[BCJ2_NUM_STREAMS + 1]; 38 UInt32 _relatLim; 40 …HRESULT CodeReal(ISequentialInStream * const *inStreams, const UInt64 * const *inSizes, UInt32 num… 41 … ISequentialOutStream * const *outStreams, const UInt64 * const *outSizes, UInt32 numOutStreams, 47 …STDMETHOD(Code)(ISequentialInStream * const *inStreams, const UInt64 * const *inSizes, UInt32 numI… 48 … ISequentialOutStream * const *outStreams, const UInt64 * const *outSizes, UInt32 numOutStreams, 51 STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps); 53 STDMETHOD(SetInBufSize)(UInt32 streamIndex, UInt32 size); 54 STDMETHOD(SetOutBufSize)(UInt32 streamIndex, UInt32 size); [all …]
|
/external/lzma/CPP/7zip/ |
D | ICoder.h | 33 …STDMETHOD(Code)(ISequentialInStream * const *inStreams, const UInt64 * const *inSizes, UInt32 numI… 34 … ISequentialOutStream * const *outStreams, const UInt64 * const *outSizes, UInt32 numOutStreams, 140 …STDMETHOD(SetCoderPropertiesOpt)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps)… 145 …STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps) PU… 163 STDMETHOD(SetDecoderProperties2)(const Byte *data, UInt32 size) PURE; 178 STDMETHOD(SetNumberOfThreads)(UInt32 numThreads) PURE; 183 STDMETHOD(SetFinishMode)(UInt32 finishMode) PURE; 192 STDMETHOD(GetInStreamProcessedSize2)(UInt32 streamIndex, UInt64 *value) PURE; 253 STDMETHOD(SetInBufSize)(UInt32 streamIndex, UInt32 size) PURE; 254 STDMETHOD(SetOutBufSize)(UInt32 streamIndex, UInt32 size) PURE; [all …]
|
/external/lzma/CPP/7zip/UI/Common/ |
D | PropIDUtils.cpp | 57 static void ConvertPosixAttribToString(char *s, UInt32 a) throw() in ConvertPosixAttribToString() 71 a &= ~(UInt32)0xFFFF; in ConvertPosixAttribToString() 80 void ConvertWinAttribToString(char *s, UInt32 wa) throw() in ConvertWinAttribToString() 91 UInt32 posix = 0; in ConvertWinAttribToString() 95 wa &= (UInt32)0x3FFF; in ConvertWinAttribToString() 100 UInt32 flag = (1 << i); in ConvertWinAttribToString() 157 UInt32 a = prop.ulVal; in ConvertPropertyToShortString2() 178 ConvertUInt32ToString((UInt32)(prop.uhVal.QuadPart >> 48), dest); in ConvertPropertyToShortString2() 267 UInt32 n; 271 static int FindPairIndex(const CSecID2Name * pairs, unsigned num, UInt32 id) in FindPairIndex() [all …]
|
D | Bench.cpp | 60 static const UInt32 k_LZMA = 0x030101; 69 static const UInt32 kComplexInSeconds = 4; 71 static void SetComplexCommands(UInt32 complexInSeconds, in SetComplexCommands() 89 static const UInt32 kFilterUnpackSize = (48 << 10); 93 static const UInt32 kAdditionalSize = (1 << 16); 94 static const UInt32 kCompressedAdditionalSize = (1 << 10); 95 static const UInt32 kMaxLzmaPropSize = 5; 99 UInt32 A1; 100 UInt32 A2; 104 UInt32 GetRnd() in GetRnd() [all …]
|
/external/lzma/CPP/7zip/Common/ |
D | LimitedStreams.cpp | 9 STDMETHODIMP CLimitedSequentialInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read() 11 UInt32 realProcessedSize = 0; in Read() 15 size = (UInt32)rem; in Read() 30 STDMETHODIMP CLimitedInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read() 43 size = (UInt32)rem; in Read() 59 STDMETHODIMP CLimitedInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() 88 STDMETHODIMP CClusterInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read() 97 size = (UInt32)rem; in Read() 104 const UInt32 blockSize = (UInt32)1 << BlockSizeLog; in Read() 105 const UInt32 virtBlock = (UInt32)(_virtPos >> BlockSizeLog); in Read() [all …]
|
D | FilterCoder.cpp | 22 static const UInt32 kBufSize = 1 << 20; 24 STDMETHODIMP CFilterCoder::SetInBufSize(UInt32 , UInt32 size) { _inBufSize = size; return S_OK; } in SetInBufSize() argument 25 STDMETHODIMP CFilterCoder::SetOutBufSize(UInt32 , UInt32 size) { _outBufSize = size; return S_OK; } in SetOutBufSize() argument 29 UInt32 size = MyMin(_inBufSize, _outBufSize); in Alloc() 33 const UInt32 kMinSize = 1 << 12; in Alloc() 34 size &= ~(UInt32)(kMinSize - 1); in Alloc() 74 UInt32 pos = 0; in Code() 78 UInt32 endPos = pos; in Code() 84 endPos = pos + (UInt32)processedSize; in Code() 109 UInt32 size = (pos != 0 ? pos : endPos); in Code() [all …]
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
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)1 << numBits) - 1); in GetRnd() [all …]
|
/external/lzma/CPP/7zip/UI/FileManager/ |
D | LangUtils.h | 14 UInt32 ControlID; 15 UInt32 LangID; 22 void LangSetDlgItemText(HWND dialog, UInt32 controlID, UInt32 langID); 23 void LangSetDlgItems(HWND dialog, const UInt32 *ids, unsigned numItems); 24 void LangSetDlgItems_Colon(HWND dialog, const UInt32 *ids, unsigned numItems); 25 void LangSetWindowText(HWND window, UInt32 langID); 27 UString LangString(UInt32 langID); 28 void AddLangString(UString &s, UInt32 langID); 29 void LangString(UInt32 langID, UString &dest); 30 void LangString_OnlyFromLangFile(UInt32 langID, UString &dest); [all …]
|
/external/lzma/CPP/7zip/Archive/Common/ |
D | CoderMixer2.h | 38 STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize); 66 STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize); 83 UInt32 PackIndex; 84 UInt32 UnpackIndex; 86 UInt32 Get_InIndex(bool encodeMode) const { return encodeMode ? UnpackIndex : PackIndex; } in Get_InIndex() 87 UInt32 Get_OutIndex(bool encodeMode) const { return encodeMode ? PackIndex : UnpackIndex; } in Get_OutIndex() 93 UInt32 NumStreams; 101 CRecordVector<UInt32> PackStreams; 106 int FindBond_for_PackStream(UInt32 packStream) const in FindBond_for_PackStream() 114 int FindBond_for_UnpackStream(UInt32 unpackStream) const in FindBond_for_UnpackStream() [all …]
|