mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
7 lines
128 B
C++
7 lines
128 B
C++
#pragma once
|
|
|
|
inline unsigned int bit_scan_reverse(unsigned int x)
|
|
{
|
|
return sizeof(unsigned int) * 8 - 1 - __builtin_clz(x);
|
|
}
|