History

bitops: rename for_each_set_bit_cont() in favor of analogous list.h function

This renames for_each_set_bit_cont() to for_each_set_bit_from() because it is analogous to list_for_each_entry_from() in list.h rather than list_for_each_entry_continue(). This doesn't remove for_each_set_bit_cont() for now.

Akinobu Mita committed 14 years ago

Commit 307b1cd1 parent 2df5e123 files · +7 −4Browse files

Showing the changes to include/linux/bitops.h (1 of 3 files). Show all

Unified · Split

include/linux/bitops.h+4−1
@@ -27,11 +27,14 @@ extern unsigned long __sw_hweight64(__u64 w); · 26 unmodified lines
27 (bit) = find_next_bit((addr), (size), (bit) + 1))27 (bit) = find_next_bit((addr), (size), (bit) + 1))
28 28
29/* same as for_each_set_bit() but use bit as value to start with */29/* same as for_each_set_bit() but use bit as value to start with */
30#define for_each_set_bit_cont(bit, addr, size) \30#define for_each_set_bit_from(bit, addr, size) \
31 for ((bit) = find_next_bit((addr), (size), (bit)); \31 for ((bit) = find_next_bit((addr), (size), (bit)); \
32 (bit) < (size); \32 (bit) < (size); \
33 (bit) = find_next_bit((addr), (size), (bit) + 1))33 (bit) = find_next_bit((addr), (size), (bit) + 1))
34 34
35#define for_each_set_bit_cont(bit, addr, size) \
36 for_each_set_bit_from(bit, addr, size)
37
35static __inline__ int get_bitmask_order(unsigned int count)38static __inline__ int get_bitmask_order(unsigned int count)
36{39{
37 int order;40 int order;