Lines Matching refs:Divisor
59 uint32_t Divisor) { in divide32() argument
61 assert(Divisor && "expected non-zero divisor"); in divide32()
70 uint64_t Quotient = Dividend64 / Divisor; in divide32()
71 uint64_t Remainder = Dividend64 % Divisor; in divide32()
78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
82 uint64_t Divisor) { in divide64() argument
84 assert(Divisor && "expected non-zero divisor"); in divide64()
88 if (int Zeros = countTrailingZeros(Divisor)) { in divide64()
90 Divisor >>= Zeros; in divide64()
94 if (Divisor == 1) in divide64()
104 uint64_t Quotient = Dividend / Divisor; in divide64()
105 Dividend %= Divisor; in divide64()
116 if (IsOverflow || Divisor <= Dividend) { in divide64()
118 Dividend -= Divisor; in divide64()
122 return getRounded(Quotient, Shift, Dividend >= getHalf(Divisor)); in divide64()