MCPcopy Create free account
hub / github.com/JeanLucPons/VanitySearch / IsLowerOrEqual

Method IsLowerOrEqual

Int.cpp:208–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206// ------------------------------------------------
207
208bool Int::IsLowerOrEqual(Int *a) {
209
210 int i = NB64BLOCK - 1;
211
212 while (i >= 0) {
213 if (a->bits64[i] != bits64[i])
214 break;
215 i--;
216}
217
218 if (i >= 0) {
219 return bits64[i]<a->bits64[i];
220 } else {
221 return true;
222 }
223
224}
225
226bool Int::IsEqual(Int *a) {
227

Callers 1

IsProbablePrimeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected