MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / ModAdd

Method ModAdd

gmp256k1/IntMod.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void Int::ModAdd(Int *a) {
21 mpz_t p;
22 mpz_add(num,num,a->num);
23 mpz_init_set(p,num);
24 mpz_sub(p,p,_P.num);
25 if(mpz_cmp_ui(p,0) >= 0)
26 mpz_set(num,p);
27 mpz_clear(p);
28}
29
30
31void Int::ModAdd(uint32_t a) {

Callers 15

thread_processFunction · 0.45
thread_process_vanityFunction · 0.45
thread_process_bsgsFunction · 0.45
thread_bPloadFunction · 0.45
thread_bPload_2bloomsFunction · 0.45
thread_process_bsgs_bothFunction · 0.45
thread_process_bsgsFunction · 0.45
thread_bPloadFunction · 0.45
thread_bPload_2bloomsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected