| 1760 | } |
| 1761 | |
| 1762 | APInt APInt::srem(const APInt &RHS) const { |
| 1763 | if (isNegative()) { |
| 1764 | if (RHS.isNegative()) |
| 1765 | return -((-(*this)).urem(-RHS)); |
| 1766 | return -((-(*this)).urem(RHS)); |
| 1767 | } |
| 1768 | if (RHS.isNegative()) |
| 1769 | return this->urem(-RHS); |
| 1770 | return this->urem(RHS); |
| 1771 | } |
| 1772 | |
| 1773 | int64_t APInt::srem(int64_t RHS) const { |
| 1774 | if (isNegative()) { |
no test coverage detected