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

Method AddC

secp256k1/IntMod.cpp:736–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734// ------------------------------------------------
735
736uint64_t Int::AddC(Int *a) {
737
738 unsigned char c = 0;
739 c = _addcarry_u64(c, bits64[0], a->bits64[0], bits64 + 0);
740 c = _addcarry_u64(c, bits64[1], a->bits64[1], bits64 + 1);
741 c = _addcarry_u64(c, bits64[2], a->bits64[2], bits64 + 2);
742 c = _addcarry_u64(c, bits64[3], a->bits64[3], bits64 + 3);
743 c = _addcarry_u64(c, bits64[4], a->bits64[4], bits64 + 4);
744#if NB64BLOCK > 5
745 c = _addcarry_u64(c, bits64[5], a->bits64[5], bits64 + 5);
746 c = _addcarry_u64(c, bits64[6], a->bits64[6], bits64 + 6);
747 c = _addcarry_u64(c, bits64[7], a->bits64[7], bits64 + 7);
748 c = _addcarry_u64(c, bits64[8], a->bits64[8], bits64 + 8);
749#endif
750
751 return c;
752
753}
754
755// ------------------------------------------------
756

Callers 2

MontgomeryMultMethod · 0.80
ModMulK1orderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected