From: Corinna Vinschen <vinschen@redhat.com>
To: Keith Packard <keithp@keithp.com>
Cc: newlib@sourceware.org
Subject: Re: [PATCH] libm/machine/riscv: Add custom fma/sqrt functions when supported [v2]
Date: Wed, 12 Aug 2020 10:09:46 +0200 [thread overview]
Message-ID: <20200812080946.GN53219@calimero.vinschen.de> (raw)
In-Reply-To: <20200812024717.2176874-1-keithp@keithp.com>
On Aug 11 19:47, Keith Packard via Newlib wrote:
> Check for HW FMA and SQRT support and use those instructions in place
> of software implementations.
>
> Signed-off-by: Keith Packard <keithp@keithp.com>
>
> ---
>
> v2:
> Detect 64-bit hw float using __riscv_flen >= 64
>
> Suggested-by: Kito Cheng <kito.cheng@gmail.com>
> ---
> newlib/libm/common/math_config.h | 4 +-
> newlib/libm/machine/riscv/Makefile.am | 3 +-
> newlib/libm/machine/riscv/Makefile.in | 31 +++++++++++++++-
> newlib/libm/machine/riscv/s_fma.c | 49 +++++++++++++++++++++++++
> newlib/libm/machine/riscv/s_sqrt.c | 53 +++++++++++++++++++++++++++
> newlib/libm/machine/riscv/sf_fma.c | 49 +++++++++++++++++++++++++
> newlib/libm/machine/riscv/sf_sqrt.c | 53 +++++++++++++++++++++++++++
> 7 files changed, 237 insertions(+), 5 deletions(-)
> create mode 100644 newlib/libm/machine/riscv/s_fma.c
> create mode 100644 newlib/libm/machine/riscv/s_sqrt.c
> create mode 100644 newlib/libm/machine/riscv/sf_fma.c
> create mode 100644 newlib/libm/machine/riscv/sf_sqrt.c
Pushed.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
prev parent reply other threads:[~2020-08-12 8:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-12 2:47 Keith Packard
2020-08-12 2:50 ` Kito Cheng
2020-08-12 8:09 ` Corinna Vinschen [this message]
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=20200812080946.GN53219@calimero.vinschen.de \
--to=vinschen@redhat.com \
--cc=keithp@keithp.com \
--cc=newlib@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).