summaryrefslogtreecommitdiffstats
path: root/newlib/libm/machine/spu/headers/erfc.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/spu/headers/erfc.h')
-rw-r--r--newlib/libm/machine/spu/headers/erfc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/erfc.h b/newlib/libm/machine/spu/headers/erfc.h
new file mode 100644
index 000000000..542c4bbc2
--- /dev/null
+++ b/newlib/libm/machine/spu/headers/erfc.h
@@ -0,0 +1,6 @@
+#include "headers/erfcd2.h"
+
+static __inline double _erfc(double x)
+{
+ return spu_extract(_erfcd2(spu_promote(x, 0)), 0);
+}