1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm/datastruct
Bryn M. Reeves 5d1d65e735 libdm: add dm_bit_get_last()/dm_bit_get_prev()
It is sometimes convenient to iterate over the set bits in a dm
bitset in reverse order (from the highest set bit toward zero), or
to quickly find the last set bit.

Add dm_bit_get_last() and dm_bit_get_prev(), mirroring the existing
dm_bit_get_first() and dm_bit_get_next().

dm_bit_get_prev() uses __builtin_clz when available to efficiently
test the bitset in reverse.
2016-12-13 21:01:58 +00:00
..
bitset.c libdm: add dm_bit_get_last()/dm_bit_get_prev() 2016-12-13 21:01:58 +00:00
hash.c doc: change fsf address 2016-01-21 12:11:37 +01:00
list.c doc: change fsf address 2016-01-21 12:11:37 +01:00