From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 9015A386F424; Fri, 4 Sep 2020 13:11:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9015A386F424 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libm/riscv: Use common fma code when necessary X-Act-Checkin: newlib-cygwin X-Git-Author: Keith Packard via Newlib X-Git-Refname: refs/heads/master X-Git-Oldrev: 373f628d043cbfb138c0f53c73cafb831bac621c X-Git-Newrev: a0d7982ff486292540078c0121a435013c5ee1ea Message-Id: <20200904131152.9015A386F424@sourceware.org> Date: Fri, 4 Sep 2020 13:11:52 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2020 13:11:52 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a0d7982ff486292540078c0121a435013c5ee1ea commit a0d7982ff486292540078c0121a435013c5ee1ea Author: Keith Packard via Newlib 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 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