Lines Matching full:divisor
58 uint32_t Divisor) {
60 assert(Divisor && "expected non-zero divisor");
69 uint64_t Quotient = Dividend64 / Divisor;
70 uint64_t Remainder = Dividend64 % Divisor;
77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor));
81 uint64_t Divisor) {
83 assert(Divisor && "expected non-zero divisor");
85 // Minimize size of divisor.
87 if (int Zeros = countTrailingZeros(Divisor)) {
89 Divisor >>= Zeros;
93 if (Divisor == 1)
103 uint64_t Quotient = Dividend / Divisor;
104 Dividend %= Divisor;
115 if (IsOverflow || Divisor <= Dividend) {
117 Dividend -= Divisor;
121 return getRounded(Quotient, Shift, Dividend >= getHalf(Divisor));