MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / add

Method add

src/common/Int128.h:241–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 Int128 neg() const;
240
241 Int128 add(Int128 op2) const
242 {
243 Int128 rc;
244 rc.v = v + op2.v;
245
246 // see comment ArithmeticNode::add2()
247 if (sign() == op2.sign() && op2.sign() != rc.sign())
248 overflow();
249
250 return rc;
251 }
252
253 Int128 sub(Int128 op2) const
254 {

Callers

nothing calls this directly

Calls 3

signFunction · 0.85
signMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected