MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / Negate

Method Negate

src/cryptlib/integer.cpp:2027–2031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2025}
2026
2027void Integer::Negate()
2028{
2029 if (!!(*this)) // don't flip sign if *this==0
2030 sign = Sign(1-sign);
2031}
2032
2033int Integer::PositiveCompare(const Integer& t) const
2034{

Callers 4

operator-Method · 0.80
integer.cppFile · 0.80
MultiplyFunction · 0.80
DivideMethod · 0.80

Calls 1

SignEnum · 0.85

Tested by

no test coverage detected