Home
last modified time | relevance | path

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

12

/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DLzFind.h9 typedef UInt32 CLzRef;
14 UInt32 pos;
15 UInt32 posLimit;
16 UInt32 streamPos;
17 UInt32 lenLimit;
19 UInt32 cyclicBufferPos;
20 UInt32 cyclicBufferSize; /* it must be = (historySize + 1) */
22 UInt32 matchMaxLen;
25 UInt32 hashMask;
26 UInt32 cutValue;
[all …]
DLzFind.c29 #define kMaxValForNormalize ((UInt32)0xFFFFFFFF)
32 #define kMaxHistorySize ((UInt32)3 << 30)
47 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc) in LzInWindow_Create()
49 UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv; in LzInWindow_Create()
67 UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } in MatchFinder_GetNumAvailableBytes()
69 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) in MatchFinder_ReduceOffsets()
94 p->streamPos += (UInt32)size; in MatchFinder_ReadBlock()
143 UInt32 i; in MatchFinder_Construct()
151 UInt32 r = i; in MatchFinder_Construct()
171 static CLzRef* AllocRefs(UInt32 num, ISzAlloc *alloc) in AllocRefs()
[all …]
DLzHash.h15 #define HASH2_CALC hashValue = cur[0] | ((UInt32)cur[1] << 8);
18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
20 hashValue = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; }
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
25 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \
26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
31 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \
32 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \
37 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
[all …]
DBra86.c11 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding) in x86_Convert()
14 UInt32 prevMask = *state & 0x7; in x86_Convert()
52UInt32 src = ((UInt32)p[4] << 24) | ((UInt32)p[3] << 16) | ((UInt32)p[2] << 8) | ((UInt32)p[1]); in x86_Convert()
53 UInt32 dest; in x86_Convert()
59 dest = (ip + (UInt32)bufferPos) + src; in x86_Convert()
61 dest = src - (ip + (UInt32)bufferPos); in x86_Convert()
DCpuArch.h24 #define GetUi32(p) (*(const UInt32 *)(p))
26 #define SetUi32(p, d) *(UInt32 *)(p) = (d);
34 ((UInt32)((const Byte *)(p))[1] << 8) | \
35 ((UInt32)((const Byte *)(p))[2] << 16) | \
36 ((UInt32)((const Byte *)(p))[3] << 24))
40 #define SetUi32(p, d) { UInt32 _x_ = (d); \
52 #define GetBe32(p) _byteswap_ulong(*(const UInt32 *)(const Byte *)(p))
58 ((UInt32)((const Byte *)(p))[0] << 24) | \
59 ((UInt32)((const Byte *)(p))[1] << 16) | \
60 ((UInt32)((const Byte *)(p))[2] << 8) | \
DBra.h53 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding);
54 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
55 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
56 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
57 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
58 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
DLzmaDec.h14 #define CLzmaProb UInt32
27 UInt32 dicSize;
52 UInt32 range, code;
55 UInt32 processedPos;
56 UInt32 checkDicSize;
58 UInt32 reps[4];
62 UInt32 numProbs;
DLzmaDec.c28 #define kTopValue ((UInt32)1 << kNumTopBits)
129 #define LzmaProps_GetNumProbs(p) ((UInt32)LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((p)->lc + (p)->lp)))
161 UInt32 rep0 = p->reps[0], rep1 = p->reps[1], rep2 = p->reps[2], rep3 = p->reps[3]; in LzmaDec_DecodeReal()
170 UInt32 processedPos = p->processedPos; in LzmaDec_DecodeReal()
171 UInt32 checkDicSize = p->checkDicSize; in LzmaDec_DecodeReal()
175 UInt32 range = p->range; in LzmaDec_DecodeReal()
176 UInt32 code = p->code; in LzmaDec_DecodeReal()
181 UInt32 bound; in LzmaDec_DecodeReal()
256 UInt32 distance; in LzmaDec_DecodeReal()
322 UInt32 distance; in LzmaDec_DecodeReal()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/LzmaCompress/Sdk/C/
DLzFind.h9 typedef UInt32 CLzRef;
14 UInt32 pos;
15 UInt32 posLimit;
16 UInt32 streamPos;
17 UInt32 lenLimit;
19 UInt32 cyclicBufferPos;
20 UInt32 cyclicBufferSize; /* it must be = (historySize + 1) */
22 UInt32 matchMaxLen;
25 UInt32 hashMask;
26 UInt32 cutValue;
[all …]
DLzFindMt.h34 UInt32 numProcessedBlocks;
37 typedef UInt32 * (*Mf_Mix_Matches)(void *p, UInt32 matchMinPos, UInt32 *distances);
42 typedef void (*Mf_GetHeads)(const Byte *buffer, UInt32 pos,
43 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc);
49 UInt32 *btBuf;
50 UInt32 btBufPos;
51 UInt32 btBufPosLimit;
52 UInt32 lzPos;
53 UInt32 btNumAvailBytes;
55 UInt32 *hash;
[all …]
DLzFind.c10 #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()
75 p->streamPos += (UInt32)size; in MatchFinder_ReadBlock()
124 UInt32 i; in MatchFinder_Construct()
132 UInt32 r = i; in MatchFinder_Construct()
152 static CLzRef* AllocRefs(UInt32 num, ISzAlloc *alloc) in AllocRefs()
[all …]
DLzFindMt.c51 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 …]
DLzHash.h15 #define HASH2_CALC hashValue = cur[0] | ((UInt32)cur[1] << 8);
18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
20 hashValue = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; }
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
25 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \
26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
31 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \
32 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \
37 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
[all …]
DLzmaEnc.c47 #define kTopValue ((UInt32)1 << kNumTopBits)
89 UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2) in LzmaEncProps_GetDictSize()
106 UInt32 GetPosSlot1(UInt32 pos) in GetPosSlot1()
108 UInt32 res; in GetPosSlot1()
128 UInt32 k = (1 << ((slotFast >> 1) - 1)); in LzmaEnc_FastPosInit()
129 UInt32 j; in LzmaEnc_FastPosInit()
135 #define BSR2_RET(pos, res) { UInt32 i = 6 + ((kNumLogBits - 1) & \
136 (0 - (((((UInt32)1 << (kNumLogBits + 6)) - 1) - pos) >> 31))); \
157 UInt32 price;
163 UInt32 posPrev2;
[all …]
DBra86.c11 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding) in x86_Convert()
14 UInt32 prevMask = *state & 0x7; in x86_Convert()
52UInt32 src = ((UInt32)p[4] << 24) | ((UInt32)p[3] << 16) | ((UInt32)p[2] << 8) | ((UInt32)p[1]); in x86_Convert()
53 UInt32 dest; in x86_Convert()
59 dest = (ip + (UInt32)bufferPos) + src; in x86_Convert()
61 dest = src - (ip + (UInt32)bufferPos); in x86_Convert()
DCpuArch.h24 #define GetUi32(p) (*(const UInt32 *)(p))
26 #define SetUi32(p, d) *(UInt32 *)(p) = (d);
34 ((UInt32)((const Byte *)(p))[1] << 8) | \
35 ((UInt32)((const Byte *)(p))[2] << 16) | \
36 ((UInt32)((const Byte *)(p))[3] << 24))
40 #define SetUi32(p, d) { UInt32 _x_ = (d); \
52 #define GetBe32(p) _byteswap_ulong(*(const UInt32 *)(const Byte *)(p))
58 ((UInt32)((const Byte *)(p))[0] << 24) | \
59 ((UInt32)((const Byte *)(p))[1] << 16) | \
60 ((UInt32)((const Byte *)(p))[2] << 8) | \
DBra.h53 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding);
54 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
55 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
56 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
57 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
58 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
DLzmaDec.h14 #define CLzmaProb UInt32
27 UInt32 dicSize;
52 UInt32 range, code;
55 UInt32 processedPos;
56 UInt32 checkDicSize;
58 UInt32 reps[4];
62 UInt32 numProbs;
/device/linaro/bootloader/edk2/MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/
DLzFind.h9 typedef UInt32 CLzRef;
14 UInt32 pos;
15 UInt32 posLimit;
16 UInt32 streamPos;
17 UInt32 lenLimit;
19 UInt32 cyclicBufferPos;
20 UInt32 cyclicBufferSize; /* it must be = (historySize + 1) */
22 UInt32 matchMaxLen;
25 UInt32 hashMask;
26 UInt32 cutValue;
[all …]
DLzFind.c29 #define kMaxValForNormalize ((UInt32)0xFFFFFFFF)
32 #define kMaxHistorySize ((UInt32)3 << 30)
47 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc) in LzInWindow_Create()
49 UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv; in LzInWindow_Create()
67 UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } in MatchFinder_GetNumAvailableBytes()
69 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) in MatchFinder_ReduceOffsets()
94 p->streamPos += (UInt32)size; in MatchFinder_ReadBlock()
143 UInt32 i; in MatchFinder_Construct()
151 UInt32 r = i; in MatchFinder_Construct()
171 static CLzRef* AllocRefs(UInt32 num, ISzAlloc *alloc) in AllocRefs()
[all …]
DLzHash.h15 #define HASH2_CALC hashValue = cur[0] | ((UInt32)cur[1] << 8);
18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
20 hashValue = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; }
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
25 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \
26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
31 hash3Value = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); \
32 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \
37 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
[all …]
DBra86.c11 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding) in x86_Convert()
14 UInt32 prevMask = *state & 0x7; in x86_Convert()
52UInt32 src = ((UInt32)p[4] << 24) | ((UInt32)p[3] << 16) | ((UInt32)p[2] << 8) | ((UInt32)p[1]); in x86_Convert()
53 UInt32 dest; in x86_Convert()
59 dest = (ip + (UInt32)bufferPos) + src; in x86_Convert()
61 dest = src - (ip + (UInt32)bufferPos); in x86_Convert()
DCpuArch.h24 #define GetUi32(p) (*(const UInt32 *)(p))
26 #define SetUi32(p, d) *(UInt32 *)(p) = (d);
34 ((UInt32)((const Byte *)(p))[1] << 8) | \
35 ((UInt32)((const Byte *)(p))[2] << 16) | \
36 ((UInt32)((const Byte *)(p))[3] << 24))
40 #define SetUi32(p, d) { UInt32 _x_ = (d); \
52 #define GetBe32(p) _byteswap_ulong(*(const UInt32 *)(const Byte *)(p))
58 ((UInt32)((const Byte *)(p))[0] << 24) | \
59 ((UInt32)((const Byte *)(p))[1] << 16) | \
60 ((UInt32)((const Byte *)(p))[2] << 8) | \
DBra.h53 SizeT x86_Convert(Byte *data, SizeT size, UInt32 ip, UInt32 *state, int encoding);
54 SizeT ARM_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
55 SizeT ARMT_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
56 SizeT PPC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
57 SizeT SPARC_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
58 SizeT IA64_Convert(Byte *data, SizeT size, UInt32 ip, int encoding);
DLzmaDec.h14 #define CLzmaProb UInt32
27 UInt32 dicSize;
52 UInt32 range, code;
55 UInt32 processedPos;
56 UInt32 checkDicSize;
58 UInt32 reps[4];
62 UInt32 numProbs;

12