OmniSciDB  0b528656ed
HyperLogLogRank.h File Reference
+ Include dependency graph for HyperLogLogRank.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


FORCE_INLINE uint8_t get_rank (uint64_t x, uint32_t b)

Function Documentation

◆ get_rank()

FORCE_INLINE uint8_t get_rank ( uint64_t  x,
uint32_t  b 

Definition at line 27 of file HyperLogLogRank.h.

Referenced by agg_approximate_count_distinct(), and approximate_distinct_tuples_impl().

27  {
28  return std::min(b, static_cast<uint32_t>(x ? __builtin_clzl(x) : 64)) + 1;
29 }
+ Here is the caller graph for this function: