2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

util: New function log_2_floor().

Calculates the position of the most significant bit in a 32 bit
word.
This commit is contained in:
Ben Pfaff
2011-07-22 10:20:52 -07:00
committed by Ethan Jackson
parent 897b9afc12
commit 711e0157cf
5 changed files with 96 additions and 0 deletions

View File

@@ -194,6 +194,7 @@ char *base_name(const char *file_name);
char *abs_file_name(const char *dir, const char *file_name);
void ignore(bool x OVS_UNUSED);
int log_2_floor(uint32_t n);
#ifdef __cplusplus
}