[PATCH v4 2/3] riscv: word-at-a-time: improve find_zero() for RV32

Nam Cao namcao at linutronix.de
Fri Oct 9 06:28:09 PDT 2026


Jisheng Zhang <jszhang at kernel.org> writes:
> To remove non-necessary zero bits couting on RV32, replace the
> 'fls64(mask) >> 3' with '!mask ? 0 : ((__fls(mask) + 1) >> 3);'
>
> Signed-off-by: Jisheng Zhang <jszhang at kernel.org>

Reviewed-by: Nam Cao <namcao at linutronix.de>



More information about the linux-riscv mailing list