diff options
author | YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> | 2013-04-22 22:20:08 +0900 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-04-22 08:51:22 -0700 |
commit | 4ed6a64c61bc28513e3fa000f2f2c83e54052678 (patch) | |
tree | 909e8882a16a3d8cef1e8235199687767aef7cc5 /lib/util.h | |
parent | 5c6d0628ac6fda818b231103085db1b5055aa752 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |