mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-13 12:39:22 +08:00
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:
parent
f9c1c0a860
commit
2d9bb96b51
@ -46,4 +46,6 @@ fma (double x, double y, double z)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#include "../../common/s_fma.c"
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,4 +46,6 @@ fmaf (float x, float y, float z)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#include "../../common/sf_fma.c"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user