Lines Matching refs:UInt64

66 static const UInt64 kComplexInCommands = (UInt64)1 <<

76 bool isSpecifiedFreq, UInt64 cpuFreq, UInt64 &complexInCommands)
79 const UInt64 kMinFreq = (UInt64)1000000 * 4;
80 const UInt64 kMaxFreq = (UInt64)1000000 * 20000;
92 // const UInt64 kBenchmarkUsageMult = 1000000; // for debug
94 static const UInt64 kBenchmarkUsageMult = 1 << kBenchmarkUsageMultBits;
96 UInt64 Benchmark_GetUsage_Percents(UInt64 usage)
365 UInt64 Pos;
387 static UInt64 GetTimeCount()
393 return (UInt64)(v.tv_sec) * 1000000 + (UInt64)v.tv_usec;
394 return (UInt64)time(NULL) * 1000000;
401 return (UInt64)value.QuadPart;
406 static UInt64 GetFreq()
417 return (UInt64)value.QuadPart;
427 UInt64 Sum;
444 Sum += (UInt64)(newVal - Prev);
456 UInt64 GetUserTime()
470 UInt64 Prev;
471 UInt64 Sum;
482 UInt64 GetUserTime()
490 static inline UInt64 GetTime64(const FILETIME &t) { return ((UInt64)t.dwHighDateTime << 32) | t.dwLowDateTime; }
504 UInt64 newVal = GetTime64(userTime) + GetTime64(kernelTime);
511 Sum += (UInt64)(new_Tick - (DWORD)Prev_Tick) * 10000;
519 static UInt64 GetUserFreq()
523 return (UInt64)sysconf(_SC_CLK_TCK);
593 Z7_COM7F_IMF(CBenchProgressInfo::SetRatioInfo(const UInt64 *inSize, const UInt64 *outSize))
602 static UInt64 inSizePrev = 0;
603 static UInt64 outSizePrev = 0;
604 UInt64 delta1 = 0, delta2 = 0, val1 = 0, val2 = 0;
607 UInt64 percents = delta2 * 1000;
637 static unsigned GetLogSize(UInt64 size)
648 static UInt32 GetLogSize_Sub(UInt64 size)
662 static UInt64 Get_UInt64_from_double(double v)
664 const UInt64 kMaxVal = (UInt64)1 << 62;
667 return (UInt64)v;
670 static UInt64 MyMultDiv64(UInt64 m1, UInt64 m2, UInt64 d)
704 UInt64 CBenchInfo::GetUsage() const
706 UInt64 userTime = UserTime;
707 UInt64 userFreq = UserFreq;
708 UInt64 globalTime = GlobalTime;
709 UInt64 globalFreq = GlobalFreq;
729 UInt64 CBenchInfo::GetRatingPerUsage(UInt64 rating) const
736 UInt64 globalFreq = GlobalFreq;
753 UInt64 CBenchInfo::GetSpeed(UInt64 numUnits) const
758 static UInt64 GetNumCommands_from_Size_and_Complexity(UInt64 size, Int32 complexity)
782 UInt64 GetNumCommands_Enc(UInt64 unpackSize) const
790 UInt64 GetNumCommands_Dec(UInt64 packSize, UInt64 unpackSize) const
797 UInt64 GetRating_Enc(UInt64 dictSize, UInt64 elapsedTime, UInt64 freq, UInt64 size) const;
798 UInt64 GetRating_Dec(UInt64 elapsedTime, UInt64 freq, UInt64 outSize, UInt64 inSize, UInt64 numIterations) const;
809 UInt64 CBenchProps::GetRating_Enc(UInt64 dictSize, UInt64 elapsedTime, UInt64 freq, UInt64 size) const
817 for (UInt64 uu = 0; uu < (UInt64)0xf << 60;)
829 const UInt64 numCommands = GetNumCommands_from_Size_and_Complexity(size, encComplex);
833 UInt64 CBenchProps::GetRating_Dec(UInt64 elapsedTime, UInt64 freq, UInt64 outSize, UInt64 inSize, UInt64 numIterations) const
835 const UInt64 numCommands = GetNumCommands_Dec(inSize, outSize) * numIterations;
841 UInt64 CBenchInfo::GetRating_LzmaEnc(UInt64 dictSize) const
848 UInt64 CBenchInfo::GetRating_LzmaDec() const
1025 UInt64 NumIterations;
1282 const UInt64 reduceSize = kBufferSize;
1286 UInt64 affMask;
1422 UInt64 prev = 0;
1438 const UInt64 numIterations = NumIterations;
1439 UInt64 i = numIterations;
1571 const UInt64 reduceSize = _uncompressedDataSize;
1595 UInt64 prev = 0;
1614 const UInt64 numIterations = NumIterations;
1617 for (UInt64 i = 0; i < numIterations; i++)
1625 const UInt64 outSize = kBufferSize;
1669 UInt64 processed;
1703 static UInt64 GetNumIterations(UInt64 numCommands, UInt64 complexInCommands)
1707 UInt64 res = complexInCommands / numCommands;
1774 UInt64 complexInCommands,
1790 UInt64 methodId;
2141 static inline UInt64 GetDictSizeFromLog(unsigned dictSizeLog)
2149 return (UInt64)1 << dictSizeLog;
2156 static inline UInt64 GetLZMAUsage(bool multiThread, int btMode, UInt64 dict)
2175 UInt64 blockSize = (UInt64)dict + (1 << 16)
2181 UInt64 son = (UInt64)dict;
2184 const UInt64 v = (hs + son) * 4 + blockSize +
2193 UInt64 GetBenchMemoryUsage(UInt32 numThreads, int level, UInt64 dictionary, bool totalBench)
2196 const UInt64 kCompressedBufferSize = GetBenchCompressedSize(kBufferSize); // / 2;
2209 return ((UInt64)kBufferSize + kCompressedBufferSize +
2213 static UInt64 GetBenchMemoryUsage_Hash(UInt32 numThreads, UInt64 dictionary)
2216 return (UInt64)(dictionary + (1 << 15)) * numThreads + (2 << 20);
2233 HRESULT CrcProcess(UInt64 numIterations,
2256 HRESULT CCrcInfo_Base::CrcProcess(UInt64 numIterations,
2274 UInt64 prev = 0;
2275 UInt64 cur = 0;
2277 for (UInt64 i = 0; i < numIterations; i++)
2366 UInt64 NumIterations;
2374 for (UInt64 k = p->NumIterations; k > 0; k--)
2422 UInt64 NumIterations;
2711 static void PrintNumber(IBenchPrintCallback &f, UInt64 value, unsigned size)
2749 static void PrintRating(IBenchPrintCallback &f, UInt64 rating, unsigned size)
2755 static void PrintPercents(IBenchPrintCallback &f, UInt64 val, UInt64 divider, unsigned size)
2757 UInt64 v = 0;
2776 static void PrintUsage(IBenchPrintCallback &f, UInt64 usage, unsigned size)
2781 static void PrintResults(IBenchPrintCallback &f, UInt64 usage, UInt64 rpu, UInt64 rating, bool showFreq, UInt64 cpuFreq)
2828 UInt64 rating,
2829 bool showFreq, UInt64 cpuFreq,
2858 bool showFreq, UInt64 cpuFreq, bool showSpeed, const CTotalBenchRes &res)
2860 const UInt64 numIterations2 = res.NumIterations2 ? res.NumIterations2 : 1;
2861 const UInt64 speed = res.Speed / numIterations2;
2868 // UInt64 numIterations1 = res.NumIterations1; if (numIterations1 == 0) numIterations1 = 1;
2873 static void PrintHex(AString &s, UInt64 v)
2953 bool size_Defined, UInt64 size, const char *threadsString, UInt32 numThreads)
2988 UInt64 CpuFreq;
2989 UInt64 DictSize;
3012 HRESULT SetFreq(bool showFreq, UInt64 cpuFreq);
3017 HRESULT CBenchCallbackToPrint::SetFreq(bool showFreq, UInt64 cpuFreq)
3032 const UInt64 rating = BenchProps.GetRating_Enc(DictSize, info.GlobalTime, info.GlobalFreq, info.UnpackSize * info.NumIterations);
3052 const UInt64 rating = BenchProps.GetRating_Dec(info.GlobalTime, info.GlobalFreq, info.UnpackSize, info.PackSize, info.NumIterations);
3108 UInt64 complexInCommands,
3178 UInt64 complexInCommands;
3181 UInt64 specifiedFreq;
3184 UInt64 CpuFreqRes;
3185 UInt64 UsageRes;
3217 UInt64 numIterations = complexInCommands / complexity;
3270 for (UInt64 k = numIterations; k > 0; k--)
3294 const UInt64 numCommands = (UInt64)numIterations * numIterations2 * numThreads * complexity;
3295 const UInt64 rating = info.GetSpeed(numCommands);
3315 UInt64 complexInCommands,
3320 UInt64 &speed,
3321 UInt64 &usage,
3332 bool showFreq, UInt64 cpuFreq)
3361 UInt64 numIterations = complexInCommands * k_Hash_Complex_Mult / complexity / bsize;
3475 UInt64 unpSize = numIterations * bufferSize;
3476 UInt64 unpSizeThreads = unpSize * numThreads;
3485 UInt64 unpSizeThreads2 = unpSizeThreads;
3488 const UInt64 numCommands = unpSizeThreads2 * complexity / 256;
3489 const UInt64 rating = info.GetSpeed(numCommands);
3508 UInt64 complexInCommands,
3517 bool showFreq, UInt64 cpuFreq)
3534 UInt64 speed, usage;
3565 UInt64 *Values;
3567 void Alloc(UInt32 num) { Values = new UInt64[num]; }
3574 UInt64 result = ConvertStringToUInt64(s, &end);
3592 static void Print_Usage_and_Threads(IBenchPrintCallback &f, UInt64 usage, UInt32 threads)
3614 UInt64 usage, UInt64 speed)
3634 UInt64 ramSize = (UInt64)(sizeof(size_t)) << 29;
3667 UInt64 specifiedFreq = 0;
3669 UInt64 complexInCommands = kComplexInCommands;
3720 UInt64 len64;
3774 complexInCommands = (UInt64)1 << v;
3816 specifiedFreq = (UInt64)freq32 * 1000000;
3873 UInt64 numMilCommands = 1 << 6;
3885 UInt64 start = ::GetTimeCount();
3891 const UInt64 realDelta = ::GetTimeCount() - start;
3895 if (start > (UInt64)1 << 61)
3897 const UInt64 freq = GetFreq();
3899 const UInt64 hz = MyMultDiv64(numMilCommands * 1000000, freq, start);
3900 const UInt64 mipsVal = numMilCommands * freq / start;
3969 UInt64 numMilCommands = 1 <<
4066 UInt64 dict = (UInt64)1 << startDicLog;
4080 const UInt64 dictSize = method.Get_Lzma_DicSize();
4133 UInt64 dict64 = dict;
4226 UInt64 usage = (1 << 20);
4227 UInt64 bufSize = dict64;
4305 UInt64 numSteps = 0;
4317 const UInt64 bufSize = (UInt64)1 << pow;
4318 // UInt64 bufSize = (UInt64)1 << (pow >> NUM_SUB_BITS);
4319 // bufSize += ((UInt64)pow & ((1 << NUM_SUB_BITS) - 1)) << ((pow >> NUM_SUB_BITS) - NUM_SUB_BITS);
4336 UInt64 speed = 0;
4337 UInt64 usage = 0;
4428 const UInt64 usage = bi.GetUsage();
4429 const UInt64 speed = bi.GetUnpackSizeSpeed();
4518 dicSizeLog = (UInt64)1 << 20;
4523 if (GetBenchMemoryUsage(numThreads, (int)level, ((UInt64)1 << dicSizeLog), totalBenchMode) + (8 << 20) <= ramSize)
4526 dict = (UInt64)1 << dicSizeLog;
4559 UInt64 cpuFreq = 0;
4797 callback.DictSize = (UInt64)1 << pow;