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>
This commit is contained in:
Keith Packard via Newlib 2020-09-03 13:54:33 -07:00 committed by Corinna Vinschen
parent 373f628d04
commit a0d7982ff4
2 changed files with 4 additions and 0 deletions

View File

@ -46,4 +46,6 @@ fma (double x, double y, double z)
return result;
}
#else
#include "../../common/s_fma.c"
#endif

View File

@ -46,4 +46,6 @@ fmaf (float x, float y, float z)
return result;
}
#else
#include "../../common/sf_fma.c"
#endif