MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / toPowerOfTwo

Function toPowerOfTwo

src/Interpreters/ConcurrentHashJoin.cpp:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93UInt32 toPowerOfTwo(UInt32 x)
94{
95 if (x <= 1)
96 return 1;
97 return static_cast<UInt32>(1) << (32 - std::countl_zero(x - 1));
98}
99
100HashJoin::RightTableDataPtr getData(const std::shared_ptr<ConcurrentHashJoin::InternalHashJoin> & join)
101{

Callers 1

ConcurrentHashJoinMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected