Re: [PATCH v6 1/8] bitops: Introduce the for_each_set_clump8 macro

2019-01-11 Thread Rasmus Villemoes
On 19/12/2018 07.00, William Breathitt Gray wrote: > +/** > + * bitmap_set_value8 - set an 8-bit value within a memory region > + * @bitmap: address to the bitmap memory region > + * @value: the 8-bit value > + * @start: bit offset of the 8-bit value > + */ > +void bitmap_set_value8(unsigned long

Re: [PATCH v6 1/8] bitops: Introduce the for_each_set_clump8 macro

2019-01-11 Thread Linus Walleij
On Wed, Dec 19, 2018 at 7:00 AM William Breathitt Gray wrote: > This macro iterates for each 8-bit group of bits (clump) with set bits, > within a bitmap memory region. For each iteration, "start" is set to the > bit offset of the found clump, while the respective clump value is > stored to the

[PATCH v6 1/8] bitops: Introduce the for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
This macro iterates for each 8-bit group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value8 and