From: Leo Liang <ycliang@andestech.com>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: Rick Chen <rick@andestech.com>, Yao Zi <ziyao@disroot.org>,
E Shattow <e@freeshell.de>, Hal Feng <hal.feng@starfivetech.com>,
Mayuresh Chitale <mchitale@ventanamicro.com>,
Minda Chen <minda.chen@starfivetech.com>, <u-boot@lists.denx.de>,
Heinrich Schuchardt <zfsdt@canonical.com>
Subject: Re: [PATCH 1/2] RISC-V: implement private GCC library
Date: Thu, 4 Dec 2025 19:54:10 +0800 [thread overview]
Message-ID: <aTF2YsjAwDB58eBL@swlinux02> (raw)
In-Reply-To: <20251201174705.652626-2-zfsdt@canonical.com>
On Mon, Dec 01, 2025 at 06:47:04PM +0100, Heinrich Schuchardt wrote:
> [EXTERNAL MAIL]
>
> From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
>
> The following functions are provided:
>
> Count leading zero bits
>
> * int __clzsi2 (unsigned int a)
> * int __clzdi2 (unsigned long a)
> * int __clzti2 (unsigned long long a)
>
> Count trailing zero bits
>
> * int __ctzsi2 (unsigned int a)
> * int __ctzdi2 (unsigned long a)
> * int __ctzti2 (unsigned long long a)
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> Signed-off-by: Heinrich Schuchardt <zfsdt@canonical.com>
> ---
> arch/Kconfig | 1 +
> arch/riscv/lib/Makefile | 2 +
> arch/riscv/lib/clz.c | 105 ++++++++++++++++++++++++++++++++++++++++
> arch/riscv/lib/ctz.c | 95 ++++++++++++++++++++++++++++++++++++
> lib/Kconfig | 2 +-
> 5 files changed, 204 insertions(+), 1 deletion(-)
> create mode 100644 arch/riscv/lib/clz.c
> create mode 100644 arch/riscv/lib/ctz.c
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
next prev parent reply other threads:[~2025-12-04 11:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 17:47 [PATCH 0/2] RISC-V: implement private GCC library Heinrich Schuchardt
2025-12-01 17:47 ` [PATCH 1/2] " Heinrich Schuchardt
2025-12-04 11:53 ` Leo Liang
2025-12-04 11:54 ` Leo Liang [this message]
2025-12-01 17:47 ` [PATCH 2/2] test: provide unit tests for the RISC-V " Heinrich Schuchardt
2025-12-02 12:25 ` [PATCH 0/2] RISC-V: implement " Mark Kettenis
-- strict thread matches above, loose matches on Subject: below --
2025-12-01 17:49 Heinrich Schuchardt
2025-12-01 17:49 ` [PATCH 1/2] " Heinrich Schuchardt
2025-12-02 3:57 ` Yao Zi
2025-12-02 4:59 ` Heinrich Schuchardt
2025-12-02 5:28 ` Icenowy Zheng
2025-12-02 6:15 ` Heinrich Schuchardt
2025-12-02 7:03 ` Icenowy Zheng
2025-12-02 10:02 ` Heinrich Schuchardt
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=aTF2YsjAwDB58eBL@swlinux02 \
--to=ycliang@andestech.com \
--cc=e@freeshell.de \
--cc=hal.feng@starfivetech.com \
--cc=heinrich.schuchardt@canonical.com \
--cc=mchitale@ventanamicro.com \
--cc=minda.chen@starfivetech.com \
--cc=rick@andestech.com \
--cc=u-boot@lists.denx.de \
--cc=zfsdt@canonical.com \
--cc=ziyao@disroot.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.