Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/machine/spu/headers/sincos.h')
-rw-r--r--newlib/libm/machine/spu/headers/sincos.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libm/machine/spu/headers/sincos.h b/newlib/libm/machine/spu/headers/sincos.h
new file mode 100644
index 000000000..37c7d9416
--- /dev/null
+++ b/newlib/libm/machine/spu/headers/sincos.h
@@ -0,0 +1,10 @@
+#include "headers/sincosd2.h"
+
+static __inline void _sincos(double angle, double* sinx, double* cosx)
+{
+ vector double vsinx, vcosx;
+
+ _sincosd2(spu_promote(angle, 0), &vsinx, &vcosx);
+ *sinx = spu_extract(vsinx, 0);
+ *cosx = spu_extract(vcosx, 0);
+}