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

Method Mask

src/minisketch/src/int_utils.h:198–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 static constexpr inline bool IsZero(I a) { return a == 0; }
197 static constexpr inline bool IsOne(I a) { return a == 1; }
198 static constexpr inline I Mask(I val) { return val & MASK; }
199 static constexpr inline I Shift(I val, int bits) { return ((val << bits) & MASK); }
200 static constexpr inline I UnsafeShift(I val, int bits) { return (val << bits); }
201

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.45
getblocktemplateFunction · 0.45

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36