projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
change the type of popcount unsigned
[cascardo/ovs.git]
/
lib
/
util.h
diff --git
a/lib/util.h
b/lib/util.h
index
b944ec7
..
4f6a201
100644
(file)
--- 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. */