reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
83 assert(Divisor && "expected non-zero 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));