Lines Matching refs:Num
28 static uint64_t scale(uint64_t Num, uint32_t N, uint32_t D) {
32 if (!Num || D == N)
33 return Num;
35 // Split Num into upper and lower parts to multiply, then recombine.
36 uint64_t ProductHigh = (Num >> 32) * N;
37 uint64_t ProductLow = (Num & UINT32_MAX) * N;
67 uint64_t BranchProbability::scale(uint64_t Num) const {
68 return ::scale(Num, N, D);
71 uint64_t BranchProbability::scaleByInverse(uint64_t Num) const {
72 return ::scale(Num, D, N);