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

Function Compare

src/cryptlib/integer.cpp:175–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173#endif // defined(_MSC_VER) && defined(_M_IX86) && (_M_IX86<=500)
174
175static int Compare(const word *A, const word *B, unsigned int N)
176{
177 while (N--)
178 if (A[N] > B[N])
179 return 1;
180 else if (A[N] < B[N])
181 return -1;
182
183 return 0;
184}
185
186static word Increment(word *A, unsigned int N, word B=1)
187{

Callers 15

RecursiveMultiplyFunction · 0.70
RecursiveMultiplyTopFunction · 0.70
CorrectQuotientEstimateFunction · 0.70
DivideFunction · 0.70
AlmostInverseFunction · 0.70
MultiplyByPower2ModFunction · 0.70
PositiveSubtractFunction · 0.70
PositiveCompareMethod · 0.70
AddMethod · 0.70
integer.cppFile · 0.70
CompareMethod · 0.50
SeekToMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected