MCPcopy Create free account
hub / github.com/ElementsProject/elements / extract3

Function extract3

src/crypto/muhash.cpp:24–30  ·  view source on GitHub ↗

Extract the lowest limb of [c0,c1,c2] into n, and left shift the number by 1 limb. */

Source from the content-addressed store, hash-verified

22
23/** Extract the lowest limb of [c0,c1,c2] into n, and left shift the number by 1 limb. */
24inline void extract3(limb_t& c0, limb_t& c1, limb_t& c2, limb_t& n)
25{
26 n = c0;
27 c0 = c1;
28 c1 = c2;
29 c2 = 0;
30}
31
32/** [c0,c1] = a * b */
33inline void mul(limb_t& c0, limb_t& c1, const limb_t& a, const limb_t& b)

Callers 2

MultiplyMethod · 0.85
SquareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected