diff options
author | Keith Packard via Newlib <newlib@sourceware.org> | 2020-09-03 23:54:33 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-09-04 16:11:31 +0300 |
commit | a0d7982ff486292540078c0121a435013c5ee1ea (patch) | |
tree | f6a4ee74577cc9c0600cb701371a6296d2b6e80a /newlib/libm/machine/riscv/s_fma.c | |
parent | 373f628d043cbfb138c0f53c73cafb831bac621c (diff) |
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>
Diffstat (limited to 'newlib/libm/machine/riscv/s_fma.c')
-rw-r--r-- | newlib/libm/machine/riscv/s_fma.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |