Home | History | Annotate | Download | only in C

Lines Matching refs:UInt32

57 static int SzFolder_FindBindPairForInStream(const CSzFolder *p, UInt32 inStreamIndex)

59 UInt32 i;
72 MY_ALLOC(UInt32, p->Vals, num, alloc);
205 UInt32 v;
216 *value = (((UInt32)firstByte & 0x3F) << 8) | v;
220 *value = v | ((UInt32)mask << 8);
239 static MY_NO_INLINE const Byte *SzReadNumbers(const Byte *data, const Byte *dataLim, UInt64 *values, UInt32 num)
247 UInt32 v;
264 *values++ = (((UInt32)firstByte & 0x3F) << 8) | v;
269 value = v | ((UInt32)*data++ << 8);
290 static MY_NO_INLINE SRes SzReadNumber32(CSzData *sd, UInt32 *value)
305 if (value64 >= (UInt32)0x80000000 - 1)
309 *value = (UInt32)value64;
339 static SRes RememberBitVector(CSzData *sd, UInt32 numItems, const Byte **v)
341 UInt32 numBytes = (numItems + 7) >> 3;
349 static UInt32 CountDefinedBits(const Byte *bits, UInt32 numItems)
353 UInt32 sum = 0;
367 static MY_NO_INLINE SRes ReadBitVector(CSzData *sd, UInt32 numItems, Byte **v, ISzAlloc *alloc)
370 UInt32 i;
372 UInt32 numBytes = (numItems + 7) >> 3;
390 v2[numBytes - 1] = (Byte)((((UInt32)1 << numBits) - 1) << (8 - numBits));
395 static MY_NO_INLINE SRes ReadUi32s(CSzData *sd2, UInt32 numItems, CSzBitUi32s *crcs, ISzAlloc *alloc)
397 UInt32 i;
399 UInt32 *vals;
401 MY_ALLOC(UInt32, crcs->Vals, numItems, alloc);
416 static SRes ReadBitUi32s(CSzData *sd, UInt32 numItems, CSzBitUi32s *crcs, ISzAlloc *alloc)
423 static SRes SkipBitUi32s(CSzData *sd, UInt32 numItems)
426 UInt32 numDefined = numItems;
450 UInt32 i;
451 UInt32 numPackStreams = p->NumPackStreams;
493 UInt32 numCoders, numBindPairs, numPackStreams, i;
494 UInt32 numInStreams = 0, numOutStreams = 0;
524 if (id > (UInt32)0xFFFFFFFF)
526 coder->MethodID = (UInt32)id;
535 UInt32 numStreams;
547 UInt32 propsSize = 0;
631 static MY_NO_INLINE SRes SkipNumbers(CSzData *sd2, UInt32 num)
666 UInt32 numFoldersMax, const CBuf *tempBufs, UInt32 numTempBufs,
672 UInt32 fo, numFolders, numCodersOutStreams, packStreamIndex;
687 UInt32 index;
697 MY_ALLOC(UInt32, p->FoStartPackStreamIndex, (size_t)numFolders + 1, alloc);
706 UInt32 numCoders, ci, numInStreams = 0, numOutStreams = 0;
717 UInt32 coderInStreams, coderOutStreams;
743 UInt32 propsSize;
752 UInt32 indexOfMainStream = 0;
753 UInt32 numPackStreams = 1;
756 UInt32 i;
757 UInt32 numBindPairs = numOutStreams - 1;
772 UInt32 index;
788 UInt32 temp;
838 UInt32 i;
878 UInt32 NumTotalSubStreams;
879 UInt32 NumSubDigests;
885 #define SzUi32IndexMax (((UInt32)1 << 31) - 2)
890 UInt32 i;
891 UInt32 numSubDigests = 0;
892 UInt32 numFolders = p->NumFolders;
893 UInt32 numUnpackStreams = numFolders;
894 UInt32 numUnpackSizesInData = 0;
906 UInt32 numStreams;
962 UInt32 numFoldersMax, const CBuf *tempBufs, UInt32 numTempBufs,
1004 UInt32 numFoldersMax,
1010 UInt32 fo;
1029 UInt32 mix = (UInt32)p->FoSizesOffsets[fo];
1030 UInt32 mainIndex = mix & 0xFF;
1031 UInt32 numOutStreams = mix >> 8;
1032 UInt32 si;
1066 static SRes SzReadFileNames(const Byte *data, size_t size, UInt32 numFiles, size_t *offsets)
1093 static MY_NO_INLINE SRes ReadTime(CSzBitUi64s *p, UInt32 num,
1095 const CBuf *tempBufs, UInt32 numTempBufs,
1099 UInt32 i;
1109 UInt32 index;
1145 UInt32 *numTempBufs,
1151 UInt32 numFiles = 0;
1152 UInt32 numEmptyStreams = 0;
1153 UInt32 i;
1186 UInt32 numTempFolders;
1201 RINOK(SzReadStreamsInfo(&p->db, sd, (UInt32)1 << 30, tempBufs, *numTempBufs,
1248 UInt32 index;
1292 UInt32 index;
1335 UInt32 emptyFileIndex = 0;
1337 UInt32 folderIndex = 0;
1338 UInt32 indexInFolder = 0;
1342 UInt32 digestsValsIndex = 0;
1343 UInt32 digestIndex;
1345 UInt32 curNumSubStreams = (UInt32)(Int32)-1;
1354 MY_ALLOC(UInt32, p->FolderStartFileIndex, p->db.NumFolders + 1, allocMain);
1355 MY_ALLOC(UInt32, p->FileIndexToFolderIndexMap, p->NumFiles, allocMain);
1379 UInt32 byteIndex = (i - 1) >> 3;
1397 p->FileIndexToFolderIndexMap[i] = (UInt32)-1;
1412 if (curNumSubStreams == (UInt32)(Int32)-1);
1422 curNumSubStreams = (UInt32)(Int32)-1;
1436 UInt32 mix = (UInt32)p->db.FoSizesOffsets[folderIndex];
1437 UInt32 mainIndex = mix & 0xFF;
1438 UInt32 numOutStreams = mix >> 8;
1439 UInt32 si;
1490 UInt32 byteIndex = (i - 1) >> 3;
1512 UInt32 i;
1513 UInt32 numTempBufs = 0;
1547 static UInt64 SzAr_GetFolderUnpackSize(const CSzAr *p, UInt32 folderIndex)
1553 UInt32 si;
1578 UInt32 nextHeaderCRC;
1702 UInt32 fileIndex,
1703 UInt32 *blockIndex,
1711 UInt32 folderIndex = p->FileIndexToFolderIndexMap[fileIndex];
1715 if (folderIndex == (UInt32)-1)
1803 UInt32 parent = (UInt32)(Int32)-1;
1807 if (parent == (UInt32)(Int32)-1)
1824 UInt32 parent = (UInt32)(Int32)-1;
1834 if (parent == (UInt32)(Int32)-1)