util: New function zero_rightmost_1bit().
authorBen Pfaff <blp@nicira.com>
Fri, 20 Jul 2012 18:45:33 +0000 (11:45 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Sep 2012 18:19:17 +0000 (11:19 -0700)
commit8472a3cecc6c370e227dd477470e4a8cf760ddb5
treee5236516466e91d5329e3224b54a216f3abd3f29
parent659c23467978f40200686695c48b09582f2c534b
util: New function zero_rightmost_1bit().

It's probably easier to understand
x = zero_rightmost_1bit(x);
than
x &= x - 1;

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/util.h
ofproto/ofproto-dpif.c
tests/test-classifier.c