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

Function InvertLowestOne

src/chain.cpp:100–100  ·  view source on GitHub ↗

Turn the lowest '1' bit in the binary representation of a number into a '0'. */

Source from the content-addressed store, hash-verified

98
99/** Turn the lowest '1' bit in the binary representation of a number into a '0'. */
100int static inline InvertLowestOne(int n) { return n & (n - 1); }
101
102/** Compute what height to jump back to with the CBlockIndex::pskip pointer. */
103int static inline GetSkipHeight(int height) {

Callers 1

GetSkipHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected