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

Method PositiveCompare

src/cryptlib/integer.cpp:2033–2041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2031}
2032
2033int Integer::PositiveCompare(const Integer& t) const
2034{
2035 unsigned size = WordCount(), tSize = t.WordCount();
2036
2037 if (size == tSize)
2038 return ::Compare(reg, t.reg, size);
2039 else
2040 return size > tSize ? 1 : -1;
2041}
2042
2043int Integer::Compare(const Integer& t) const
2044{

Callers 1

PositiveDivideFunction · 0.80

Calls 2

WordCountMethod · 0.80
CompareFunction · 0.70

Tested by

no test coverage detected