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

Method AddC

IntMod.cpp:795–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793// ------------------------------------------------
794
795uint64_t Int::AddC(Int *a) {
796
797 unsigned char c = 0;
798 c = _addcarry_u64(c, bits64[0], a->bits64[0], bits64 + 0);
799 c = _addcarry_u64(c, bits64[1], a->bits64[1], bits64 + 1);
800 c = _addcarry_u64(c, bits64[2], a->bits64[2], bits64 + 2);
801 c = _addcarry_u64(c, bits64[3], a->bits64[3], bits64 + 3);
802 c = _addcarry_u64(c, bits64[4], a->bits64[4], bits64 + 4);
803#if NB64BLOCK > 5
804 c = _addcarry_u64(c, bits64[5], a->bits64[5], bits64 + 5);
805 c = _addcarry_u64(c, bits64[6], a->bits64[6], bits64 + 6);
806 c = _addcarry_u64(c, bits64[7], a->bits64[7], bits64 + 7);
807 c = _addcarry_u64(c, bits64[8], a->bits64[8], bits64 + 8);
808#endif
809
810 return c;
811
812}
813
814// ------------------------------------------------
815

Callers 2

MontgomeryMultMethod · 0.80
ModMulK1orderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected