reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
82 assert(Dividend && "expected non-zero dividend"); 94 return std::make_pair(Dividend, Shift); 97 if (int Zeros = countLeadingZeros(Dividend)) { 99 Dividend <<= Zeros; 103 uint64_t Quotient = Dividend / Divisor; 104 Dividend %= Divisor; 107 while (!(Quotient >> 63) && Dividend) { 109 bool IsOverflow = Dividend >> 63; 110 Dividend <<= 1; 115 if (IsOverflow || Divisor <= Dividend) { 117 Dividend -= Divisor; 121 return getRounded(Quotient, Shift, Dividend >= getHalf(Divisor));