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