git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: New function zero_rightmost_1bit().
[sliver-openvswitch.git]
/
tests
/
test-classifier.c
diff --git
a/tests/test-classifier.c
b/tests/test-classifier.c
index
d4a524d
..
3ee6ddb
100644
(file)
--- a/
tests/test-classifier.c
+++ b/
tests/test-classifier.c
@@
-769,7
+769,7
@@
count_ones(unsigned long int x)
int n = 0;
while (x) {
- x
&= x - 1
;
+ x
= zero_rightmost_1bit(x)
;
n++;
}