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

Function InvertLowestOne

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

2013
2014/** Turn the lowest '1' bit in the binary representation of a number into a '0'. */
2015int32_t static inline InvertLowestOne(int32_t n) { return n & (n - 1); }
2016
2017/** Compute what height to jump back to with the CBlockIndex::pskip pointer. */
2018int32_t static inline GetSkipHeight(int32_t height) {

Callers 1

GetSkipHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected