/external/lzma/C/ |
D | LzFind.h | 13 typedef UInt32 CLzRef; 18 UInt32 pos; 19 UInt32 posLimit; 20 UInt32 streamPos; 21 UInt32 lenLimit; 23 UInt32 cyclicBufferPos; 24 UInt32 cyclicBufferSize; /* it must be = (historySize + 1) */ 26 UInt32 matchMaxLen; 29 UInt32 hashMask; 30 UInt32 cutValue; [all …]
|
D | LzFindMt.h | 38 UInt32 numProcessedBlocks; 41 typedef UInt32 * (*Mf_Mix_Matches)(void *p, UInt32 matchMinPos, UInt32 *distances); 46 typedef void (*Mf_GetHeads)(const Byte *buffer, UInt32 pos, 47 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc); 53 UInt32 *btBuf; 54 UInt32 btBufPos; 55 UInt32 btBufPosLimit; 56 UInt32 lzPos; 57 UInt32 btNumAvailBytes; 59 UInt32 *hash; [all …]
|
D | Bra.c | 6 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) in ARM_Convert() 17 UInt32 dest; in ARM_Convert() 18 UInt32 src = ((UInt32)data[i + 2] << 16) | ((UInt32)data[i + 1] << 8) | (data[i + 0]); in ARM_Convert() 21 dest = ip + (UInt32)i + src; in ARM_Convert() 23 dest = src - (ip + (UInt32)i); in ARM_Convert() 33 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) in ARMT_Convert() 45 UInt32 dest; in ARMT_Convert() 46 UInt32 src = in ARMT_Convert() 47 (((UInt32)data[i + 1] & 0x7) << 19) | in ARMT_Convert() 48 ((UInt32)data[i + 0] << 11) | in ARMT_Convert() [all …]
|
D | LzFind.c | 10 #define kMaxValForNormalize ((UInt32)0xFFFFFFFF) 13 #define kMaxHistorySize ((UInt32)3 << 30) 28 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc) in LzInWindow_Create() 30 UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv; in LzInWindow_Create() 48 UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } in MatchFinder_GetNumAvailableBytes() 50 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) in MatchFinder_ReduceOffsets() 63 UInt32 curSize = 0xFFFFFFFF - p->streamPos; in MatchFinder_ReadBlock() 65 curSize = (UInt32)p->directInputRem; in MatchFinder_ReadBlock() 86 p->streamPos += (UInt32)size; in MatchFinder_ReadBlock() 135 UInt32 i; in MatchFinder_Construct() [all …]
|
D | 7z.h | 48 UInt32 NumInStreams; 49 UInt32 NumOutStreams; 59 UInt32 InIndex; 60 UInt32 OutIndex; 67 UInt32 *PackStreams; 69 UInt32 NumCoders; 70 UInt32 NumBindPairs; 71 UInt32 NumPackStreams; 73 UInt32 UnpackCRC; 75 UInt32 NumUnpackStreams; [all …]
|
D | LzFindMt.c | 51 UInt32 myNumBlocks = p->numProcessedBlocks; in MtSync_StopWriting() 100 …Sync_Create2(CMtSync *p, unsigned (MY_STD_CALL *startAddress)(void *), void *obj, UInt32 numBlocks) in MtSync_Create2() 122 …tSync_Create(CMtSync *p, unsigned (MY_STD_CALL *startAddress)(void *), void *obj, UInt32 numBlocks) in MtSync_Create() 135 static void GetHeads ## name(const Byte *p, UInt32 pos, \ 136 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc) \ 138 const UInt32 value = (v); p++; *heads++ = pos - hash[value]; hash[value] = pos++; } } 142 DEF_GetHeads2(2, (p[0] | ((UInt32)p[1] << 8)), hashMask = hashMask; crc = crc; ) 143 DEF_GetHeads(3, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8)) & hashMask) 144 DEF_GetHeads(4, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ (crc[p[3]] << 5)) & hashMask) 145 DEF_GetHeads(4b, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ ((UInt32)p[3] << 16)) & hashMask) [all …]
|
D | LzmaEnc.c | 34 #define kTopValue ((UInt32)1 << kNumTopBits) 76 UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2) in LzmaEncProps_GetDictSize() 93 UInt32 GetPosSlot1(UInt32 pos) in GetPosSlot1() 95 UInt32 res; in GetPosSlot1() 115 UInt32 k = (1 << ((slotFast >> 1) - 1)); in LzmaEnc_FastPosInit() 116 UInt32 j; in LzmaEnc_FastPosInit() 122 #define BSR2_RET(pos, res) { UInt32 i = 6 + ((kNumLogBits - 1) & \ 123 (0 - (((((UInt32)1 << (kNumLogBits + 6)) - 1) - pos) >> 31))); \ 144 UInt32 price; 150 UInt32 posPrev2; [all …]
|
D | 7zCrc.c | 15 typedef UInt32 (MY_FAST_CALL *CRC_FUNC)(UInt32 v, const void *data, size_t size, const UInt32 *tabl… 18 UInt32 g_CrcTable[256 * CRC_NUM_TABLES]; 24 static UInt32 MY_FAST_CALL CrcUpdateT1(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT1() 34 UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table); 35 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table); 39 UInt32 MY_FAST_CALL CrcUpdate(UInt32 v, const void *data, size_t size) in CrcUpdate() 44 UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size) in CrcCalc() 51 UInt32 i; in CrcGenerateTable() 54 UInt32 r = i; in CrcGenerateTable() 65 UInt32 r = g_CrcTable[i - 256]; in CrcGenerateTable()
|
/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/CPP/7zip/Compress/ |
D | BranchMisc.cpp | 9 UInt32 CBC_ARM_Encoder::SubFilter(Byte *data, UInt32 size) in SubFilter() 10 { return (UInt32)::ARM_Convert(data, size, _bufferPos, 1); } in SubFilter() 12 UInt32 CBC_ARM_Decoder::SubFilter(Byte *data, UInt32 size) in SubFilter() 13 { return (UInt32)::ARM_Convert(data, size, _bufferPos, 0); } in SubFilter() 15 UInt32 CBC_ARMT_Encoder::SubFilter(Byte *data, UInt32 size) in SubFilter() 16 { return (UInt32)::ARMT_Convert(data, size, _bufferPos, 1); } in SubFilter() 18 UInt32 CBC_ARMT_Decoder::SubFilter(Byte *data, UInt32 size) in SubFilter() 19 { return (UInt32)::ARMT_Convert(data, size, _bufferPos, 0); } in SubFilter() 21 UInt32 CBC_PPC_Encoder::SubFilter(Byte *data, UInt32 size) in SubFilter() 22 { return (UInt32)::PPC_Convert(data, size, _bufferPos, 1); } in SubFilter() [all …]
|
D | RangeCoder.h | 14 const UInt32 kTopValue = (1 << kNumTopBits); 18 UInt32 _cacheSize; 22 UInt32 Range; 24 bool Create(UInt32 bufferSize) { return Stream.Create(bufferSize); } in Create() 47 void Encode(UInt32 start, UInt32 size, UInt32 total) in Encode() 60 if ((UInt32)Low < (UInt32)0xFF000000 || (int)(Low >> 32) != 0) in ShiftLow() 69 _cache = (Byte)((UInt32)Low >> 24); in ShiftLow() 72 Low = (UInt32)Low << 8; in ShiftLow() 75 void EncodeDirectBits(UInt32 value, int numBits) in EncodeDirectBits() 89 void EncodeBit(UInt32 size0, UInt32 numTotalBits, UInt32 symbol) in EncodeBit() [all …]
|
/external/lzma/CPP/7zip/Archive/Common/ |
D | CoderMixer2.h | 15 UInt32 InIndex; 16 UInt32 OutIndex; 21 UInt32 NumInStreams; 22 UInt32 NumOutStreams; 29 CRecordVector<UInt32> InStreams; 30 CRecordVector<UInt32> OutStreams; 51 void GetNumStreams(UInt32 &numInStreams, UInt32 &numOutStreams) const in GetNumStreams() 63 int FindBinderForInStream(UInt32 inStream) const in FindBinderForInStream() 70 int FindBinderForOutStream(UInt32 outStream) const in FindBinderForOutStream() 78 UInt32 GetCoderInStreamIndex(UInt32 coderIndex) const in GetCoderInStreamIndex() [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/marisa-trie/lib/marisa/ |
D | range.h | 11 Range(UInt32 begin, UInt32 end, UInt32 pos) in Range() 14 void set_begin(UInt32 begin) { in set_begin() 17 void set_end(UInt32 end) { in set_end() 20 void set_pos(UInt32 pos) { in set_pos() 24 UInt32 begin() const { in begin() 27 UInt32 end() const { in end() 30 UInt32 pos() const { in pos() 35 UInt32 begin_; 36 UInt32 end_; 37 UInt32 pos_; [all …]
|
D | trie.h | 28 UInt32 *key_ids = NULL, int flags = 0); 31 std::vector<UInt32> *key_ids = NULL, int flags = 0); 33 std::vector<UInt32> *key_ids = NULL, int flags = 0); 54 std::string operator[](UInt32 key_id) const; 56 UInt32 operator[](const char *str) const; 57 UInt32 operator[](const std::string &str) const; 59 std::string restore(UInt32 key_id) const; 60 void restore(UInt32 key_id, std::string *key) const; 61 std::size_t restore(UInt32 key_id, char *key_buf, 64 UInt32 lookup(const char *str) const; [all …]
|
D | rank.h | 12 void set_abs(UInt32 value) { in set_abs() 15 void set_rel1(UInt32 value) { in set_rel1() 19 void set_rel2(UInt32 value) { in set_rel2() 23 void set_rel3(UInt32 value) { in set_rel3() 27 void set_rel4(UInt32 value) { in set_rel4() 31 void set_rel5(UInt32 value) { in set_rel5() 35 void set_rel6(UInt32 value) { in set_rel6() 39 void set_rel7(UInt32 value) { in set_rel7() 44 UInt32 abs() const { in abs() 47 UInt32 rel1() const { in rel1() [all …]
|
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
D | range.h | 11 Range(UInt32 begin, UInt32 end, UInt32 pos) in Range() 14 void set_begin(UInt32 begin) { in set_begin() 17 void set_end(UInt32 end) { in set_end() 20 void set_pos(UInt32 pos) { in set_pos() 24 UInt32 begin() const { in begin() 27 UInt32 end() const { in end() 30 UInt32 pos() const { in pos() 35 UInt32 begin_; 36 UInt32 end_; 37 UInt32 pos_; [all …]
|
D | trie.h | 28 UInt32 *key_ids = NULL, int flags = 0); 31 std::vector<UInt32> *key_ids = NULL, int flags = 0); 33 std::vector<UInt32> *key_ids = NULL, int flags = 0); 54 std::string operator[](UInt32 key_id) const; 56 UInt32 operator[](const char *str) const; 57 UInt32 operator[](const std::string &str) const; 59 std::string restore(UInt32 key_id) const; 60 void restore(UInt32 key_id, std::string *key) const; 61 std::size_t restore(UInt32 key_id, char *key_buf, 64 UInt32 lookup(const char *str) const; [all …]
|
D | rank.h | 12 void set_abs(UInt32 value) { in set_abs() 15 void set_rel1(UInt32 value) { in set_rel1() 19 void set_rel2(UInt32 value) { in set_rel2() 23 void set_rel3(UInt32 value) { in set_rel3() 27 void set_rel4(UInt32 value) { in set_rel4() 31 void set_rel5(UInt32 value) { in set_rel5() 35 void set_rel6(UInt32 value) { in set_rel6() 39 void set_rel7(UInt32 value) { in set_rel7() 44 UInt32 abs() const { in abs() 47 UInt32 rel1() const { in rel1() [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/UI/Common/ |
D | Bench.cpp | 41 static const UInt32 kUncompressMinBlockSize = 48 static const UInt32 kCrcBlockSize = 55 static const UInt32 kAdditionalSize = (1 << 16); 56 static const UInt32 kCompressedAdditionalSize = (1 << 10); 57 static const UInt32 kMaxLzmaPropSize = 5; 61 UInt32 A1; 62 UInt32 A2; 66 UInt32 GetRnd() in GetRnd() 102 UInt32 GetVal(UInt32 &res, int numBits) in GetVal() 104 UInt32 val = res & (((UInt32)1 << numBits) - 1); in GetVal() [all …]
|
/external/liblzf/cs/ |
D | CLZF.cs | 50 UInt32 []crc_32_tab = new UInt32[256] 106 public UInt32 crc32(UInt32 OldCRC,byte NewData) in crc32() 116 UInt32 HLOG=14; 117 UInt32 HSIZE=(1<<14); 125 UInt32 MAX_LIT=(1 << 5); 126 UInt32 MAX_OFF=(1 << 13); 127 UInt32 MAX_REF=((1 << 8) + (1 << 3)); 129 UInt32 FRST(byte[] Array,UInt32 ptr) in FRST() 131 return (UInt32)(((Array[ptr]) << 8) | Array[ptr+1]); in FRST() 134 UInt32 NEXT(UInt32 v,byte[] Array,UInt32 ptr) in NEXT() [all …]
|
/external/lzma/CPP/7zip/Common/ |
D | LimitedStreams.cpp | 8 STDMETHODIMP CLimitedSequentialInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read() 10 UInt32 realProcessedSize = 0; in Read() 11 UInt32 sizeToRead = (UInt32)MyMin((_size - _pos), (UInt64)size); in Read() 25 STDMETHODIMP CLimitedInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read() 33 size = (UInt32)rem; in Read() 48 STDMETHODIMP CLimitedInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek() 62 STDMETHODIMP CClusterInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read() 71 UInt32 blockSize = (UInt32)1 << BlockSizeLog; in Read() 72 UInt32 virtBlock = (UInt32)(_virtPos >> BlockSizeLog); in Read() 73 UInt32 offsetInBlock = (UInt32)_virtPos & (blockSize - 1); in Read() [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 …]
|