public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libm/riscv: Use common fma code when necessary Date: Fri, 4 Sep 2020 13:11:52 +0000 (GMT) [thread overview] Message-ID: <20200904131152.9015A386F424@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a0d7982ff486292540078c0121a435013c5ee1ea commit a0d7982ff486292540078c0121a435013c5ee1ea Author: Keith Packard via Newlib <newlib@sourceware.org> Date: Thu Sep 3 13:54:33 2020 -0700 libm/riscv: Use common fma code when necessary For RISC-V targets without hardware FMA support, include the common fma implementation to provide that API. Signed-off-by: Keith Packard <keithp@keithp.com> Diff: --- newlib/libm/machine/riscv/s_fma.c | 2 ++ newlib/libm/machine/riscv/sf_fma.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/newlib/libm/machine/riscv/s_fma.c b/newlib/libm/machine/riscv/s_fma.c index b7f378071..2d9ebfc99 100644 --- a/newlib/libm/machine/riscv/s_fma.c +++ b/newlib/libm/machine/riscv/s_fma.c @@ -46,4 +46,6 @@ fma (double x, double y, double z) return result; } +#else +#include "../../common/s_fma.c" #endif diff --git a/newlib/libm/machine/riscv/sf_fma.c b/newlib/libm/machine/riscv/sf_fma.c index 8061a8abb..285c54883 100644 --- a/newlib/libm/machine/riscv/sf_fma.c +++ b/newlib/libm/machine/riscv/sf_fma.c @@ -46,4 +46,6 @@ fmaf (float x, float y, float z) return result; } +#else +#include "../../common/sf_fma.c" #endif
reply other threads:[~2020-09-04 13:11 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20200904131152.9015A386F424@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@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: linkBe 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).