MCPcopy Create free account
hub / github.com/ablab/spades / srem

Method srem

ext/src/llvm/APInt.cpp:1762–1771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1760}
1761
1762APInt 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
1773int64_t APInt::srem(int64_t RHS) const {
1774 if (isNegative()) {

Callers 1

Calls 3

uremMethod · 0.95
isNegativeFunction · 0.50
isNegativeMethod · 0.45

Tested by

no test coverage detected