MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / log2

Function log2

Disruptor/Util.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 std::int32_t log2(std::int32_t i)
31 {
32 std::int32_t r = 0;
33 while ((i >>= 1) != 0)
34 {
35 ++r;
36 }
37 return r;
38 }
39
40 std::int64_t getMinimumSequence(const std::vector< std::shared_ptr< ISequence > >& sequences, std::int64_t minimum)
41 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected