Home
last modified time | relevance | path

Searched refs:UInt32 (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/external/lzma/C/
DLzFind.h11 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) */
24 UInt32 matchMaxLen;
27 UInt32 hashMask;
28 UInt32 cutValue;
[all …]
DLzFindMt.h36 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 …]
DBra.c8 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) in ARM_Convert()
19 UInt32 dest; in ARM_Convert()
20 UInt32 src = ((UInt32)data[i + 2] << 16) | ((UInt32)data[i + 1] << 8) | (data[i + 0]); in ARM_Convert()
23 dest = ip + (UInt32)i + src; in ARM_Convert()
25 dest = src - (ip + (UInt32)i); in ARM_Convert()
35 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding) in ARMT_Convert()
47 UInt32 dest; in ARMT_Convert()
48 UInt32 src = in ARMT_Convert()
49 (((UInt32)data[i + 1] & 0x7) << 19) | in ARMT_Convert()
50 ((UInt32)data[i + 0] << 11) | in ARMT_Convert()
[all …]
DLzFind.c12 #define kMaxValForNormalize ((UInt32)0xFFFFFFFF)
15 #define kMaxHistorySize ((UInt32)3 << 30)
30 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc) in LzInWindow_Create()
32 UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv; in LzInWindow_Create()
50 UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } in MatchFinder_GetNumAvailableBytes()
52 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) in MatchFinder_ReduceOffsets()
65 UInt32 curSize = 0xFFFFFFFF - p->streamPos; in MatchFinder_ReadBlock()
67 curSize = (UInt32)p->directInputRem; in MatchFinder_ReadBlock()
88 p->streamPos += (UInt32)size; in MatchFinder_ReadBlock()
137 UInt32 i; in MatchFinder_Construct()
[all …]
D7zCrc.c13 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
19UInt32 MY_FAST_CALL CrcUpdateT1_BeT4(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);
26 typedef UInt32 (MY_FAST_CALL *CRC_FUNC)(UInt32 v, const void *data, size_t size, const UInt32 *tabl…
29 UInt32 g_CrcTable[256 * CRC_NUM_TABLES];
31 UInt32 MY_FAST_CALL CrcUpdate(UInt32 v, const void *data, size_t size) in CrcUpdate()
36 UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size) in CrcCalc()
43 UInt32 i; in CrcGenerateTable()
46 UInt32 r = i; in CrcGenerateTable()
54 UInt32 r = g_CrcTable[i - 256]; in CrcGenerateTable()
[all …]
DLzFindMt.c53 UInt32 myNumBlocks = p->numProcessedBlocks; in MtSync_StopWriting()
102 static SRes MtSync_Create2(CMtSync *p, THREAD_FUNC_TYPE startAddress, void *obj, UInt32 numBlocks) in MtSync_Create2()
124 static SRes MtSync_Create(CMtSync *p, THREAD_FUNC_TYPE startAddress, void *obj, UInt32 numBlocks) in MtSync_Create()
137 static void GetHeads ## name(const Byte *p, UInt32 pos, \
138 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc) \
140 const UInt32 value = (v); p++; *heads++ = pos - hash[value]; hash[value] = pos++; } }
144 DEF_GetHeads2(2, (p[0] | ((UInt32)p[1] << 8)), hashMask = hashMask; crc = crc; )
145 DEF_GetHeads(3, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8)) & hashMask)
146 DEF_GetHeads(4, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ (crc[p[3]] << 5)) & hashMask)
147 DEF_GetHeads(4b, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ ((UInt32)p[3] << 16)) & hashMask)
[all …]
DLzmaEnc.c36 #define kTopValue ((UInt32)1 << kNumTopBits)
67 if ((UInt32)p->reduceSize <= ((UInt32)2 << i)) { p->dictSize = ((UInt32)2 << i); break; } in LzmaEncProps_Normalize()
68 if ((UInt32)p->reduceSize <= ((UInt32)3 << i)) { p->dictSize = ((UInt32)3 << i); break; } in LzmaEncProps_Normalize()
88 UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2) in LzmaEncProps_GetDictSize()
105 UInt32 GetPosSlot1(UInt32 pos) in GetPosSlot1()
107 UInt32 res; in GetPosSlot1()
127 UInt32 k = (1 << ((slotFast >> 1) - 1)); in LzmaEnc_FastPosInit()
128 UInt32 j; in LzmaEnc_FastPosInit()
134 #define BSR2_RET(pos, res) { UInt32 i = 6 + ((kNumLogBits - 1) & \
135 (0 - (((((UInt32)1 << (kNumLogBits + 6)) - 1) - pos) >> 31))); \
[all …]
DAes.c9 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)…
62 UInt32 a1 = Sbox[i]; in AesGenTables()
[all …]
D7z.h27 UInt32 MethodID;
35 UInt32 InIndex;
36 UInt32 OutIndex;
46 UInt32 NumCoders;
47 UInt32 NumBindPairs;
48 UInt32 NumPackStreams;
49 UInt32 MainOutStream;
50 UInt32 PackStreams[SZ_NUM_PACK_STREAMS_IN_FOLDER_MAX];
71 UInt32 Low;
72 UInt32 High;
[all …]
DCpuArch.h66 #define GetUi32(p) (*(const UInt32 *)(const void *)(p))
69 #define SetUi32(p, d) *(UInt32 *)(p) = (d);
78 ((UInt32)((const Byte *)(p))[1] << 8) | \
79 ((UInt32)((const Byte *)(p))[2] << 16) | \
80 ((UInt32)((const Byte *)(p))[3] << 24))
84 #define SetUi16(p, d) { UInt32 _x_ = (d); \
88 #define SetUi32(p, d) { UInt32 _x_ = (d); \
95 SetUi32(p, (UInt32)_x64_); \
96 SetUi32(((Byte *)(p)) + 4, (UInt32)(_x64_ >> 32)); }
106 #define GetBe32(p) _byteswap_ulong(*(const UInt32 *)(const Byte *)(p))
[all …]
/external/lzma/CS/7zip/Compress/LZ/
DLzBinTree.cs9 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 …]
DLzInWindow.cs11 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/Archive/Common/
DCoderMixer2.h15 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/
DLzmaEncoder.cs17 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/Compress/
DRangeCoder.h14 const UInt32 kTopValue = (1 << kNumTopBits);
18 UInt32 _cacheSize;
22 UInt32 Range;
24 bool Create(UInt32 bufSize) { return Stream.Create(bufSize); } in Create()
45 void Encode(UInt32 start, UInt32 size, UInt32 total) in Encode()
58 if ((UInt32)Low < (UInt32)0xFF000000 || (unsigned)(Low >> 32) != 0) in ShiftLow()
67 _cache = (Byte)((UInt32)Low >> 24); in ShiftLow()
70 Low = (UInt32)Low << 8; in ShiftLow()
73 void EncodeDirectBits(UInt32 value, int numBits) in EncodeDirectBits()
87 void EncodeBit(UInt32 size0, UInt32 numTotalBits, UInt32 symbol) in EncodeBit()
[all …]
DBcj2Coder.cpp24 static const UInt32 kDefaultLimit = (1 << (24 + NUM_BITS));
45 HRESULT CEncoder::CodeReal(ISequentialInStream **inStreams, const UInt64 **inSizes, UInt32 numInStr… in CodeReal()
46 ISequentialOutStream **outStreams, const UInt64 ** /* outSizes */, UInt32 numOutStreams, in CodeReal()
87 UInt32 nowPos = 0; in CodeReal()
89 UInt32 bufPos = 0; in CodeReal()
99 UInt32 processedSize = 0; in CodeReal()
102 UInt32 size = kBufSize - (bufPos + processedSize); in CodeReal()
103 UInt32 processedSizeLoc; in CodeReal()
111 UInt32 endPos = bufPos + processedSize; in CodeReal()
120 UInt32 index; in CodeReal()
[all …]
/external/lzma/CPP/7zip/Archive/
DIArchive.h25 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/CS/7zip/Compress/RangeCoder/
DRangeCoderBitTree.cs22 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/liblzf/cs/
DCLZF.cs50 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/Common/
DCrcReg.cpp15 typedef UInt32 (MY_FAST_CALL *CRC_FUNC)(UInt32 v, const void *data, size_t size, const UInt32 *tabl…
20 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
24 UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
34 UInt32 _crc;
36 bool SetFunctions(UInt32 tSize);
43 STDMETHOD_(void, Update)(const void *data, UInt32 size);
45 STDMETHOD_(UInt32, GetDigestSize)();
46 STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
54 STDMETHODIMP_(void) CCrcHasher::Update(const void *data, UInt32 size) in STDMETHODIMP_()
61 UInt32 val = CRC_GET_DIGEST(_crc); in STDMETHODIMP_()
[all …]
/external/lzma/CPP/7zip/UI/Common/
DPropIDUtils.cpp44 void ConvertWinAttribToString(char *s, UInt32 wa) in ConvertWinAttribToString()
89 UInt32 a = prop.ulVal; in ConvertPropertyToShortString()
103 a &= ~(UInt32)0xFFFF; in ConvertPropertyToShortString()
115 ConvertUInt32ToString((UInt32)(prop.uhVal.QuadPart >> 48), dest); in ConvertPropertyToShortString()
206 UInt32 n;
257 UInt32 n[5];
266 static void ParseSid(AString &s, const Byte *p, UInt32 lim, UInt32 &sidSize) in ParseSid()
274 UInt32 rev = p[0]; in ParseSid()
280 UInt32 num = p[1]; in ParseSid()
287 UInt32 authority = GetBe32(p + 4); in ParseSid()
[all …]
DBench.cpp62 static void SetComplexCommands(UInt32 complexInSeconds, UInt64 cpuFreq, UInt64 &complexInCommands) in SetComplexCommands()
78 static const UInt32 kFilterUnpackSize = (48 << 10);
82 static const UInt32 kAdditionalSize = (1 << 16);
83 static const UInt32 kCompressedAdditionalSize = (1 << 10);
84 static const UInt32 kMaxLzmaPropSize = 5;
88 UInt32 A1;
89 UInt32 A2;
93 UInt32 GetRnd() in GetRnd()
130 UInt32 GetVal(UInt32 &res, unsigned numBits) in GetVal()
132 UInt32 val = res & (((UInt32)1 << numBits) - 1); in GetVal()
[all …]
/external/lzma/CPP/7zip/Common/
DLimitedStreams.cpp8 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()
37 size = (UInt32)rem; in Read()
52 STDMETHODIMP CLimitedInStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition) in Seek()
81 STDMETHODIMP CClusterInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read()
90 UInt32 blockSize = (UInt32)1 << BlockSizeLog; in Read()
91 UInt32 virtBlock = (UInt32)(_virtPos >> BlockSizeLog); in Read()
92 UInt32 offsetInBlock = (UInt32)_virtPos & (blockSize - 1); in Read()
[all …]
/external/lzma/CPP/7zip/
DICoder.h24 STDMETHOD(Code)(ISequentialInStream **inStreams, const UInt64 **inSizes, UInt32 numInStreams,
25 ISequentialOutStream **outStreams, const UInt64 **outSizes, UInt32 numOutStreams,
55 …STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps) PU…
67 STDMETHOD(SetDecoderProperties2)(const Byte *data, UInt32 size) PURE;
82 STDMETHOD(SetNumberOfThreads)(UInt32 numThreads) PURE;
114 STDMETHOD(SetInBufSize)(UInt32 streamIndex, UInt32 size) PURE;
115 STDMETHOD(SetOutBufSize)(UInt32 streamIndex, UInt32 size) PURE;
121 STDMETHOD_(UInt32, Filter)(Byte *data, UInt32 size) PURE;
132 STDMETHOD(GetNumberOfMethods)(UInt32 *numMethods) PURE;
133 STDMETHOD(GetProperty)(UInt32 index, PROPID propID, PROPVARIANT *value) PURE;
[all …]
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs13 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 …]

12345678910>>...15