Lines Matching defs:Shift
180 static uint64_t shiftRightAndRound(uint64_t N, int Shift) {
181 assert(Shift >= 0);
182 assert(Shift < 64);
183 if (!Shift)
185 return (N >> Shift) + (UINT64_C(1) & N >> (Shift - 1));
207 int Shift = 0;
209 Shift = 33;
211 Shift = 33 - countLeadingZeros(Total);
214 if (!Shift) {
231 // Scale down below UINT32_MAX. Since Shift is larger than necessary, we
234 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift));