Lines Matching defs:Remainder

1421                    unsigned rhsWords, WordType *Quotient, WordType *Remainder) {
1441 if ((Remainder?4:3)*n+2*m+1 <= 128) {
1445 if (Remainder)
1451 if (Remainder)
1474 if (Remainder)
1529 if (Remainder) {
1531 Remainder[i] = Make_64(R[i*2+1], R[i*2]);
1639 assert(RHS.U.VAL != 0 && "Remainder by zero?");
1669 APInt Remainder(BitWidth, 0);
1670 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, nullptr, Remainder.U.pVal);
1671 return Remainder;
1675 assert(RHS != 0 && "Remainder by zero?");
1701 uint64_t Remainder;
1702 divide(U.pVal, lhsWords, &RHS, 1, nullptr, &Remainder);
1703 return Remainder;
1729 APInt &Quotient, APInt &Remainder) {
1739 Remainder = APInt(BitWidth, RemVal);
1752 Remainder = APInt(BitWidth, 0); // 0 % Y ===> 0
1758 Remainder = APInt(BitWidth, 0); // X % 1 ===> 0
1762 Remainder = LHS; // X % Y ===> X, iff X < Y
1769 Remainder = APInt(BitWidth, 0); // X % X ===> 0;
1775 // change the size. This is necessary if Quotient or Remainder is aliased
1778 Remainder.reallocate(BitWidth);
1785 Remainder = lhsValue % rhsValue;
1791 Remainder.U.pVal);
1792 // Clear the rest of the Quotient and Remainder.
1795 std::memset(Remainder.U.pVal + rhsWords, 0,
1800 uint64_t &Remainder) {
1807 Remainder = LHS.U.VAL % RHS;
1818 Remainder = 0; // 0 % Y ===> 0
1824 Remainder = 0; // X % 1 ===> 0
1829 Remainder = LHS.getZExtValue(); // X % Y ===> X, iff X < Y
1836 Remainder = 0; // X % X ===> 0;
1849 Remainder = lhsValue % RHS;
1854 divide(LHS.U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, &Remainder);
1861 APInt &Quotient, APInt &Remainder) {
1864 APInt::udivrem(-LHS, -RHS, Quotient, Remainder);
1866 APInt::udivrem(-LHS, RHS, Quotient, Remainder);
1869 Remainder.negate();
1871 APInt::udivrem(LHS, -RHS, Quotient, Remainder);
1874 APInt::udivrem(LHS, RHS, Quotient, Remainder);
1879 APInt &Quotient, int64_t &Remainder) {
1880 uint64_t R = Remainder;
1895 Remainder = R;