MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / InvertLowestOne

Function InvertLowestOne

src/chain.cpp:65–65  ·  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

63
64/** Turn the lowest '1' bit in the binary representation of a number into a '0'. */
65int static inline InvertLowestOne(int n) { return n & (n - 1); }
66
67/** Compute what height to jump back to with the CBlockIndex::pskip pointer. */
68int static inline GetSkipHeight(int height) {

Callers 1

GetSkipHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected