Lines Matching refs:UInt32
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()
172 static UInt32 GetVal(UInt32 &res, unsigned numBits) in GetVal()
174 UInt32 val = res & (((UInt32)1 << numBits) - 1); in GetVal()
179 static UInt32 GetLen(UInt32 &r) in GetLen()
181 UInt32 len = GetVal(r, 2); in GetLen()
200 UInt32 pos = 0; in GenerateLz()
201 UInt32 rep0 = 1; in GenerateLz()
208 UInt32 r = rg.GetRnd(); in GenerateLz()
213 UInt32 len; in GenerateLz()
220 while (((UInt32)1 << posBits) < pos) in GenerateLz()
234 UInt32 ppp = GetVal(r, numLogBits) + kAddBits; in GenerateLz()
247 UInt32 rem = (UInt32)bufSize - pos; in GenerateLz()
254 for (UInt32 i = 0; i < len; i++) in GenerateLz()
279 STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize);
282 STDMETHODIMP CBenchmarkInStream::Read(void *data, UInt32 size, UInt32 *processedSize) in Read()
285 UInt32 kMaxBlockSize = (1 << 20); in Read()
289 size = (UInt32)remain; in Read()
290 for (UInt32 i = 0; i < size; i++) in Read()
308 UInt32 Crc;
323 STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
326 STDMETHODIMP CBenchmarkOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize) in Write()
340 *processedSize = (UInt32)curSize; in Write()
355 UInt32 Crc;
360 STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
363 STDMETHODIMP CCrcOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize) in Write()
560 static UInt32 GetLogSize(UInt32 size) in GetLogSize()
563 for (UInt32 j = 0; j < (1 << kSubBits); j++) in GetLogSize()
564 if (size <= (((UInt32)1) << i) + (j << (i - kSubBits))) in GetLogSize()
626 UInt32 EncComplex;
627 UInt32 DecComplexCompr;
628 UInt32 DecComplexUnc;
643 UInt64 GetCompressRating(UInt32 dictSize, UInt64 elapsedTime, UInt64 freq, UInt64 size);
655 UInt64 CBenchProps::GetCompressRating(UInt32 dictSize, UInt64 elapsedTime, UInt64 freq, UInt64 size) in GetCompressRating()
675 UInt64 GetCompressRating(UInt32 dictSize, UInt64 elapsedTime, UInt64 freq, UInt64 size) in GetCompressRating()
695 UInt32 NumDecoderSubThreads;
716 UInt32 DecoderIndex;
733 UInt32 crc;
754 HRESULT Decode(UInt32 decoderIndex);
948 UInt32 cur = (UInt32)1 << 31; in My_FilterBench()
950 cur = (UInt32)size; in My_FilterBench()
951 UInt32 processed = filter->Filter(data, cur); in My_FilterBench()
978 UInt32 crcPrev = 0; in Encode()
1013 UInt32 crcNew = CRC_GET_DIGEST(outStreamSpec->Crc); in Encode()
1030 HRESULT CEncoderInfo::Decode(UInt32 decoderIndex) in Decode()
1081 RINOK(setDecProps->SetDecoderProperties2(propStreamSpec->Buffer, (UInt32)propStreamSpec->Pos)); in Decode()
1141 static const UInt32 kNumThreadsMax = (1 << 12);
1146 CBenchEncoders(UInt32 num): encoders(NULL) { encoders = new CEncoderInfo[num]; } in CBenchEncoders()
1168 UInt32 in MethodBench()
1184 UInt32 numStreams; in MethodBench()
1194 UInt32 numEncoderThreads = 1; in MethodBench()
1195 UInt32 numSubDecoderThreads = 1; in MethodBench()
1204 const UInt32 numLzmaThreads = method.Get_Lzma_NumThreads(); in MethodBench()
1216 UInt32 i; in MethodBench()
1239 for (UInt32 j = 0; j < numSubDecoderThreads; j++) in MethodBench()
1253 UInt32 crc = 0; in MethodBench()
1338 UInt32 numDecoderThreads = numEncoderThreads * numSubDecoderThreads; in MethodBench()
1362 for (UInt32 j = 0; j < numSubDecoderThreads; j++) in MethodBench()
1383 for (UInt32 j = 0; j < numSubDecoderThreads; j++) in MethodBench()
1400 for (UInt32 j = 0; j < numSubDecoderThreads; j++) in MethodBench()
1427 static inline UInt64 GetLZMAUsage(bool multiThread, UInt32 dictionary) in GetLZMAUsage()
1429 UInt32 hs = dictionary - 1; in GetLZMAUsage()
1443 UInt64 GetBenchMemoryUsage(UInt32 numThreads, UInt32 dictionary, bool totalBench) in GetBenchMemoryUsage()
1445 const UInt32 kBufferSize = dictionary; in GetBenchMemoryUsage()
1446 const UInt32 kCompressedBufferSize = kBufferSize; // / 2; in GetBenchMemoryUsage()
1448 UInt32 numBigThreads = numThreads; in GetBenchMemoryUsage()
1455 static HRESULT CrcBig(const void *data, UInt32 size, UInt64 numIterations, in CrcBig()
1456 const UInt32 *checkSum, IHasher *hf, in CrcBig()
1472 UInt32 hashSize = hf->GetDigestSize(); in CrcBig()
1475 UInt32 sum = 0; in CrcBig()
1476 for (UInt32 j = 0; j < hashSize; j += 4) in CrcBig()
1486 UInt32 g_BenchCpuFreqTemp = 1;
1492 static const UInt32 kNumFreqCommands = 128;
1496 static UInt32 CountCpuFreq(UInt32 sum, UInt32 num, UInt32 val) in CountCpuFreq()
1498 for (UInt32 i = 0; i < num; i++) in CountCpuFreq()
1515 UInt32 ValRes;
1516 UInt32 Size;
1530 UInt32 sum = g_BenchCpuFreqTemp; in FreqThreadFunction()
1545 UInt32 NumThreads;
1550 for (UInt32 i = 0; i < NumThreads; i++) in WaitAll()
1568 UInt32 Size;
1571 UInt32 CheckSum;
1603 UInt32 NumThreads;
1608 for (UInt32 i = 0; i < NumThreads; i++) in WaitAll()
1621 static UInt32 CrcCalc1(const Byte *buf, UInt32 size) in CrcCalc1()
1623 UInt32 crc = CRC_INIT_VAL;; in CrcCalc1()
1624 for (UInt32 i = 0; i < size; i++) in CrcCalc1()
1629 static void RandGen(Byte *buf, UInt32 size, CBaseRandomGenerator &RG) in RandGen()
1631 for (UInt32 i = 0; i < size; i++) in RandGen()
1635 static UInt32 RandGenCrc(Byte *buf, UInt32 size, CBaseRandomGenerator &RG) in RandGenCrc()
1644 const UInt32 kBufferSize0 = (1 << 8); in CrcInternalTest()
1645 const UInt32 kBufferSize1 = (1 << 10); in CrcInternalTest()
1646 const UInt32 kCheckSize = (1 << 5); in CrcInternalTest()
1650 UInt32 i; in CrcInternalTest()
1653 UInt32 crc1 = CrcCalc1(buf, kBufferSize0); in CrcInternalTest()
1659 for (UInt32 j = 0; j < kCheckSize; j++) in CrcInternalTest()
1669 UInt32 EncComplex;
1670 UInt32 DecComplexCompr;
1671 UInt32 DecComplexUnc;
1704 UInt32 Complex;
1705 UInt32 CheckSum;
1934 bool size_Defined, UInt64 size, const char *threadsString, UInt32 numThreads) in PrintRequirements()
1965 UInt32 DictSize;
2068 UInt32 numThreads, in TotalBench()
2122 UInt32 numThreads, in FreqBench()
2127 UInt32 &res) in FreqBench()
2132 UInt32 bufferSize = 1 << 20; in FreqBench()
2133 UInt32 complexity = kNumFreqCommands; in FreqBench()
2141 UInt32 bsize = (bufferSize == 0 ? 1 : bufferSize); in FreqBench()
2153 UInt32 i; in FreqBench()
2179 UInt32 sum = g_BenchCpuFreqTemp; in FreqBench()
2217 UInt32 numThreads, UInt32 bufferSize, in CrcBench()
2219 UInt32 complexity, unsigned benchWeight, in CrcBench()
2220 const UInt32 *checkSum, in CrcBench()
2250 UInt32 bsize = (bufferSize == 0 ? 1 : bufferSize); in CrcBench()
2263 UInt32 i; in CrcBench()
2360 UInt32 numThreads, UInt32 bufSize, in TotalBench_Hash()
2403 CTempValues(UInt32 num) { Values = new UInt64[num]; } in CTempValues()
2413 else if (result <= (UInt32)0xFFFFFFFF) in ParseNumberString()
2414 prop = (UInt32)result; in ParseNumberString()
2419 static UInt32 GetNumThreadsNext(unsigned i, UInt32 numThreads) in GetNumThreadsNext()
2424 UInt32 num = (UInt32)(2 + (i & 1)) << (i >> 1); in GetNumThreadsNext()
2436 static void PrintCpuChars(AString &s, UInt32 v) in PrintCpuChars()
2452 UInt32 maxFunc2 = 0; in x86cpuid_to_String()
2453 UInt32 t[3]; in x86cpuid_to_String()
2468 UInt32 d[4] = { 0 }; in x86cpuid_to_String()
2593 static void PrintPage(AString &s, UInt32 v) in PrintPage()
2604 static AString TypeToString2(const char * const table[], unsigned num, UInt32 value) in TypeToString2()
2657 const UInt32 kReserveSize = ((UInt32)1 << 16); in SysInfo_To_String()
2792 UInt32 numIterations, in Bench()
2798 UInt32 numCPUs = 1; in Bench()
2815 UInt32 numThreadsSpecified = numCPUs; in Bench()
2817 UInt32 testTime = kComplexInSeconds; in Bench()
2848 if (len >= ((UInt32)1 << 31) || len == 0) in Bench()
2852 UInt32 processedSize; in Bench()
2853 file.Read(fileDataBuffer.Buffer, (UInt32)len, processedSize); in Bench()
2883 UInt32 freq32 = 0; in Bench()
3000 UInt32 sum = (UInt32)start; in Bench()
3001 …sum = CountCpuFreq(sum, (UInt32)(numMilCommands * 1000000 / kNumFreqCommands), g_BenchCpuFreqTemp); in Bench()
3052 UInt32 dict; in Bench()
3062 UInt32 dictSize = method.Get_Lzma_DicSize(); in Bench()
3063 UInt32 uncompressedDataSize = kAdditionalSize + dictSize; in Bench()
3089 UInt32 complexity = 10000; in Bench()
3090 const UInt32 *checkSum = NULL; in Bench()
3128 UInt32 t = GetNumThreadsNext(numThreadsTests, numThreadsSpecified); in Bench()
3143 for (UInt32 i = 0; i < numIterations; i++) in Bench()
3147 UInt32 bufSize = (UInt32)1 << pow; in Bench()
3161 UInt32 t = GetNumThreadsNext(ti, numThreadsSpecified); in Bench()
3202 UInt32 numThreads = numThreadsSpecified; in Bench()
3250 …if (GetBenchMemoryUsage(numThreads, ((UInt32)1 << dicSizeLog), totalBenchMode) + (8 << 20) <= ramS… in Bench()
3253 dict = (UInt32)1 << dicSizeLog; in Bench()
3350 for (UInt32 i = 0; i < numIterations; i++) in Bench()
3360 UInt32 resVal; in Bench()
3395 UInt32 resVal; in Bench()
3446 unsigned pow = (dict < ((UInt32)1 << kStartDicLog)) ? kBenchMinDicLogSize : kStartDicLog; in Bench()
3449 while (((UInt32)1 << pow) > dict && pow > 0) in Bench()
3451 for (; ((UInt32)1 << pow) <= dict; pow++) in Bench()
3459 callback.DictSize = (UInt32)1 << pow; in Bench()
3468 NCOM::CPropVariant propVariant = (UInt32)pow; in Bench()