MCPcopy Create free account
hub / github.com/LUX-Core/lux / InvertLowestOne

Function InvertLowestOne

src/main.cpp:4943–4943  ·  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

4941
4942/** Turn the lowest '1' bit in the binary representation of a number into a '0'. */
4943int static inline InvertLowestOne(int n) { return n & (n - 1); }
4944
4945/** Compute what height to jump back to with the CBlockIndex::pskip pointer. */
4946int static inline GetSkipHeight(int height)

Callers 1

GetSkipHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected