aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>2013-04-22 22:20:08 +0900
committerBen Pfaff <blp@nicira.com>2013-04-22 08:51:22 -0700
commit4ed6a64c61bc28513e3fa000f2f2c83e54052678 (patch)
tree909e8882a16a3d8cef1e8235199687767aef7cc5 /lib/util.h
parent5c6d0628ac6fda818b231103085db1b5055aa752 (diff)
change the type of popcount unsigned
it's a natural choice and compatible with a version found in NetBSD libc. Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.h b/lib/util.h
index b944ec79..4f6a2016 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -265,7 +265,7 @@ ctz(uint32_t n)
int log_2_floor(uint32_t);
int log_2_ceil(uint32_t);
-int popcount(uint32_t);
+unsigned int popcount(uint32_t);
/* Returns the rightmost 1-bit in 'x' (e.g. 01011000 => 00001000), or 0 if 'x'
* is 0. */