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

Method ModPositiveK1

IntMod.cpp:1185–1198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183}
1184
1185uint32_t Int::ModPositiveK1() {
1186
1187 Int N(this);
1188 Int D(this);
1189 N.ModNeg();
1190 D.Sub(&N);
1191 if(D.IsNegative()) {
1192 return 0;
1193 } else {
1194 Set(&N);
1195 return 1;
1196 }
1197
1198}
1199
1200
1201void Int::ModMulK1order(Int *a) {

Callers

nothing calls this directly

Calls 3

ModNegMethod · 0.80
SubMethod · 0.80
IsNegativeMethod · 0.80

Tested by

no test coverage detected