From: Nam Cao <namcao@linutronix.de>
To: Jisheng Zhang <jszhang@kernel.org>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/3] riscv: word-at-a-time: improve find_zero() for RV32
Date: Fri, 09 Oct 2026 15:28:09 +0200 [thread overview]
Message-ID: <87pkxj2ec6.fsf@yellow.woof> (raw)
In-Reply-To: <20260930124052.21986-3-jszhang@kernel.org>
Jisheng Zhang <jszhang@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@kernel.org>
Reviewed-by: Nam Cao <namcao@linutronix.de>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-10-09 13:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 12:40 [PATCH v4 0/3] riscv: word-at-a-time: improve find_zero() Jisheng Zhang
2026-09-30 12:40 ` [PATCH v4 1/3] riscv: word-at-a-time: improve find_zero() for !RISCV_ISA_ZBB or no Zbb Jisheng Zhang
2026-10-09 13:19 ` Nam Cao
2026-09-30 12:40 ` [PATCH v4 2/3] riscv: word-at-a-time: improve find_zero() for RV32 Jisheng Zhang
2026-10-09 13:28 ` Nam Cao [this message]
2026-09-30 12:40 ` [PATCH v4 3/3] riscv: word-at-a-time: improve find_zero() for Zbb Jisheng Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pkxj2ec6.fsf@yellow.woof \
--to=namcao@linutronix.de \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=jszhang@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.