MySQL 8.0.39
Source Code Documentation
|
Some useful bit functions. More...
Go to the source code of this file.
Functions | |
static uint | my_bit_log2 (ulong value) |
static uint | my_count_bits (ulonglong v) |
static uint | my_count_bits_uint32 (uint32 v) |
static uint32 | my_round_up_to_next_power (uint32 v) |
static uint32 | my_clear_highest_bit (uint32 v) |
static uint32 | my_reverse_bits (uint32 key) |
template<typename IntType > | |
constexpr bool | is_single_bit (IntType bits) |
Determine if a single bit is set among some bits. More... | |
Variables | |
const char | _my_bits_nbits [256] |
const uchar | _my_bits_reverse_table [256] |
Some useful bit functions.
|
constexpr |
Determine if a single bit is set among some bits.
IntType | an integer type |
bits | the bits to examine |
true | if bits equals to a power of 2 |
false | otherwise |
|
inlinestatic |
|
extern |
|
extern |