[PATCH v3 2/5] lib/test_bitmap: add tests for bitmap_{set,get}_value()
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Mon Jul 17 09:28:18 PDT 2023
On Mon, Jul 17, 2023 at 09:11:50AM -0700, Yury Norov wrote:
> On Mon, Jul 17, 2023 at 01:37:05PM +0200, Alexander Potapenko wrote:
...
> if (val & BIT(j - start))
> __set_bit(j, orig);
> else
> __clear_bit(j, orig);
JFYI: __asign_bit() can be used here.
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list