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

Function ctz

src/test/merkle_tests.cpp:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static inline int ctz(uint32_t i) {
173 if (i == 0) return 0;
174 int j = 0;
175 while (!(i & 1)) {
176 j++;
177 i >>= 1;
178 }
179 return j;
180}
181
182BOOST_AUTO_TEST_CASE(merkle_test)
183{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected