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

Function UintToArith256

src/arith_uint256.cpp:253–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 return b;
252}
253arith_uint256 UintToArith256(const uint256 &a)
254{
255 arith_uint256 b;
256 for(int x=0; x<b.WIDTH; ++x)
257 b.pn[x] = ReadLE32(a.begin() + x*4);
258 return b;
259}

Callers 14

CheckParentProofOfWorkFunction · 0.85
GetNextWorkRequiredFunction · 0.85
CheckProofOfWorkFunction · 0.85
grind_taskFunction · 0.85
SetHexMethod · 0.85
arith_uint256VFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
sanity_check_chainparamsFunction · 0.85

Calls 2

ReadLE32Function · 0.85
beginMethod · 0.45

Tested by 7

arith_uint256VFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
sanity_check_chainparamsFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68
ConsumeArithUInt256Function · 0.68