util: New function log_2_floor().
authorBen Pfaff <blp@nicira.com>
Fri, 22 Jul 2011 17:20:52 +0000 (10:20 -0700)
committerEthan Jackson <ethan@nicira.com>
Sat, 23 Jul 2011 00:46:48 +0000 (17:46 -0700)
commit711e0157cf345f1473247ec90c6ff39eb9f7743c
treef65665a1ea974b7dd5484dec7fefc000e1e01204
parent897b9afc123aec3b9e8950797b53909754e748bc
util: New function log_2_floor().

Calculates the position of the most significant bit in a 32 bit
word.
lib/util.c
lib/util.h
tests/automake.mk
tests/library.at
tests/test-util.c [new file with mode: 0644]