Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/spu/s_erf.c')
-rw-r--r--newlib/libm/machine/spu/s_erf.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/s_erf.c b/newlib/libm/machine/spu/s_erf.c
new file mode 100644
index 000000000..89ef0cf59
--- /dev/null
+++ b/newlib/libm/machine/spu/s_erf.c
@@ -0,0 +1,18 @@
+#include <math.h>
+#include "headers/erf.h"
+
+double erf(double x)
+{
+ return _erf(x);
+}
+
+/*
+ * The default s_erf.c contains both erf and erfc, erfc was manually added
+ * here, it could be moved to a separate file (similar for sf_erf.c).
+ */
+#include "headers/erfc.h"
+
+double erfc(double x)
+{
+ return _erfc(x);
+}