diff options
Diffstat (limited to 'newlib/libm/machine/spu/sf_erf.c')
-rw-r--r-- | newlib/libm/machine/spu/sf_erf.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/sf_erf.c b/newlib/libm/machine/spu/sf_erf.c new file mode 100644 index 000000000..14e0dcd82 --- /dev/null +++ b/newlib/libm/machine/spu/sf_erf.c @@ -0,0 +1,18 @@ +#include <math.h> +#include "headers/erff.h" + +float erff(float x) +{ + return _erff(x); +} + +/* + * The default sf_erf.c contains both erff and erfcf, erfcf was manually added + * here, it could be moved to a separate file (similar to s_erf.c). + */ +#include "headers/erfcf.h" + +float erfcf(float x) +{ + return _erfcf(x); +} |