Tor 0.4.9.1-alpha-dev
|
Go to the source code of this file.
Functions | |
int | tor_log2 (uint64_t u64) ATTR_CONST |
uint64_t | round_to_power_of_2 (uint64_t u64) |
int | n_bits_set_u8 (uint8_t v) |
int n_bits_set_u8 | ( | uint8_t | v | ) |
uint64_t round_to_power_of_2 | ( | uint64_t | u64 | ) |
int tor_log2 | ( | uint64_t | u64 | ) |
Returns floor(log2(u64)). If u64 is 0, (incorrectly) returns 0.
Definition at line 16 of file bits.c.
Referenced by domain_to_string(), and round_to_power_of_2().