MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ArithToUint256

Function ArithToUint256

src/arith_uint256.cpp:219–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219uint256 ArithToUint256(const arith_uint256 &a)
220{
221 uint256 b;
222 for(int x=0; x<a.WIDTH; ++x)
223 WriteLE32(b.begin() + x*4, a.pn[x]);
224 return b;
225}
226arith_uint256 UintToArith256(const uint256 &a)
227{
228 arith_uint256 b;

Callers 6

BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
integer.cppFile · 0.85
SERIALIZE_METHODSMethod · 0.85
GetTargetFunction · 0.85

Calls 2

WriteLE32Function · 0.85
beginMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68