Lines Matching refs:Dividend
58 std::pair<uint32_t, int16_t> ScaledNumbers::divide32(uint32_t Dividend, in divide32() argument
60 assert(Dividend && "expected non-zero dividend"); in divide32()
64 uint64_t Dividend64 = Dividend; in divide32()
81 std::pair<uint64_t, int16_t> ScaledNumbers::divide64(uint64_t Dividend, in divide64() argument
83 assert(Dividend && "expected non-zero dividend"); in divide64()
95 return std::make_pair(Dividend, Shift); in divide64()
98 if (int Zeros = countLeadingZeros(Dividend)) { in divide64()
100 Dividend <<= Zeros; in divide64()
104 uint64_t Quotient = Dividend / Divisor; in divide64()
105 Dividend %= Divisor; in divide64()
108 while (!(Quotient >> 63) && Dividend) { in divide64()
110 bool IsOverflow = Dividend >> 63; in divide64()
111 Dividend <<= 1; in divide64()
116 if (IsOverflow || Divisor <= Dividend) { in divide64()
118 Dividend -= Divisor; in divide64()
122 return getRounded(Quotient, Shift, Dividend >= getHalf(Divisor)); in divide64()