MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_clear_highest_bit

Function my_clear_highest_bit

include/my_bit.h:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static inline uint32 my_clear_highest_bit(uint32 v)
103{
104 uint32 w=v >> 1;
105 w|= w >> 1;
106 w|= w >> 2;
107 w|= w >> 4;
108 w|= w >> 8;
109 w|= w >> 16;
110 return v & w;
111}
112
113static inline uint32 my_reverse_bits(uint32 key)
114{

Callers 1

initialize_bucketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected