Lines Matching defs:Shift
189 static uint64_t shiftRightAndRound(uint64_t N, int Shift) {
190 assert(Shift >= 0);
191 assert(Shift < 64);
192 if (!Shift)
194 return (N >> Shift) + (UINT64_C(1) & N >> (Shift - 1));
216 int Shift = 0;
218 Shift = 33;
220 Shift = 33 - countLeadingZeros(Total);
223 if (!Shift)
232 // Scale down below UINT32_MAX. Since Shift is larger than necessary, we
235 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift));