Re: [PATCH v4 2/3] riscv: word-at-a-time: improve find_zero() for RV32
From: Nam Cao
Date: Fri Oct 09 2026 - 09:39:50 EST
Jisheng Zhang <jszhang@xxxxxxxxxx> 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@xxxxxxxxxx>
Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>