Re: [PATCH] libm/machine/riscv: Add custom fma/sqrt functions when supported [v2]

Corinna Vinschen via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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 <[email protected]>
> 
> ---
> 
> v2:
> 	Detect 64-bit hw float using __riscv_flen >= 64
> 
> 	Suggested-by: Kito Cheng <[email protected]>
> ---
>  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.