On Fri, Mar 13, 2020 at 5:37 AM Rasmus Villemoes <[email protected]> wrote: > > hweight32 is a somewhat expensive way to check for power-of-2. Use the > is_power_of_2 helper, which does the standard and cheap idiom > foo&(foo-1)==0. > > add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-96 (-96) > Function old new delta > spi_nor_write 388 292 -96 > > Signed-off-by: Rasmus Villemoes <[email protected]> > ---
Applied to u-boot-spi/master

