summaryrefslogtreecommitdiffstats
path: root/newlib/libm/common/s_fma.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/common/s_fma.c')
-rw-r--r--newlib/libm/common/s_fma.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/newlib/libm/common/s_fma.c b/newlib/libm/common/s_fma.c
new file mode 100644
index 000000000..86958afcb
--- /dev/null
+++ b/newlib/libm/common/s_fma.c
@@ -0,0 +1,18 @@
+#include "fdlibm.h"
+
+#ifndef _DOUBLE_IS_32BITS
+
+#ifdef __STDC__
+ double fma(double x, double y, double z)
+#else
+ double fma(x,y)
+ double x;
+ double y;
+ double z;
+#endif
+{
+ /* Implementation defined. */
+ return (x * y) + z;
+}
+
+#endif /* _DOUBLE_IS_32BITS */