hmap: Use is_pow2() instead of open-coding it.
authorBen Pfaff <blp@nicira.com>
Tue, 18 Jun 2013 16:55:02 +0000 (09:55 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Jun 2013 19:37:13 +0000 (12:37 -0700)
commit34a78b1869c69fa6bf50e2b77ee7969f00509794
tree46ba47a2f38e2e8fde0557a6e2f76e408f18e928
parent98eaac36fc96c5168e76fd039d3d4aea97b6aa56
hmap: Use is_pow2() instead of open-coding it.

Also, SIZE_MAX + 1 is 0, which is not a power of 2, so the following assert
is redundant and this commit removes it.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/hmap.c