Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295175
b: refs/heads/master
c: 03f4a82
h: refs/heads/master
i:
  295173: b3607ef
  295171: 6ccc90b
  295167: d89f356
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Mar 23, 2012
1 parent c83688d commit 631ada5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a329d2d5a1dd75273597538cdc33512ee38855e
refs/heads/master: 03f4a8226c2f9c14361f75848d1e93139bab90c4
11 changes: 11 additions & 0 deletions trunk/include/linux/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ extern unsigned long __sw_hweight64(__u64 w);
(bit) < (size); \
(bit) = find_next_bit((addr), (size), (bit) + 1))

#define for_each_clear_bit(bit, addr, size) \
for ((bit) = find_first_zero_bit((addr), (size)); \
(bit) < (size); \
(bit) = find_next_zero_bit((addr), (size), (bit) + 1))

/* same as for_each_clear_bit() but use bit as value to start with */
#define for_each_clear_bit_from(bit, addr, size) \
for ((bit) = find_next_zero_bit((addr), (size), (bit)); \
(bit) < (size); \
(bit) = find_next_zero_bit((addr), (size), (bit) + 1))

static __inline__ int get_bitmask_order(unsigned int count)
{
int order;
Expand Down

0 comments on commit 631ada5

Please sign in to comment.