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/math/w_sincos.c')
-rw-r--r--newlib/libm/math/w_sincos.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/newlib/libm/math/w_sincos.c b/newlib/libm/math/w_sincos.c
new file mode 100644
index 000000000..491efa418
--- /dev/null
+++ b/newlib/libm/math/w_sincos.c
@@ -0,0 +1,22 @@
+/* sincos -- currently no more efficient than two separate calls to
+ sin and cos. */
+
+#include "fdlibm.h"
+#include <errno.h>
+
+#ifndef _DOUBLE_IS_32BITS
+
+#ifdef __STDC__
+ void sincos(double x, double *sinx, double *cosx)
+#else
+ void sincos(x, sinx, cosx)
+ double x;
+ double *sinx;
+ double *cosx;
+#endif
+{
+ *sinx = sin (x);
+ *cosx = cos (x);
+}
+
+#endif /* defined(_DOUBLE_IS_32BITS) */