diff options
Diffstat (limited to 'newlib/libm/machine/spu/s_erf.c')
-rw-r--r-- | newlib/libm/machine/spu/s_erf.c | 18 |
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); +} |