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

Function InvertLowestOne

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

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

Callers 1

GetSkipHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected