diff options
Diffstat (limited to 'newlib/libm/machine/spu/headers/erf.h')
-rw-r--r-- | newlib/libm/machine/spu/headers/erf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/erf.h b/newlib/libm/machine/spu/headers/erf.h new file mode 100644 index 000000000..c0fbec888 --- /dev/null +++ b/newlib/libm/machine/spu/headers/erf.h @@ -0,0 +1,6 @@ +#include "headers/erfd2.h" + +static __inline double _erf(double x) +{ + return spu_extract(_erfd2(spu_promote(x, 0)), 0); +} |