fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / math / wf_sincos.c
blob477c604019f750b437aa6b0d3e8c8733e7634a0d
1 /* sincos -- currently no more efficient than two separate calls to
2 sin and cos. */
3 #include "fdlibm.h"
4 #include <errno.h>
6 #ifdef __STDC__
7 void sincosf(float x, float *sinx, float *cosx)
8 #else
9 void sincosf(x, sinx, cosx)
10 float x;
11 float *sinx;
12 float *cosx;
13 #endif
15 *sinx = sinf (x);
16 *cosx = cosf (x);
19 #ifdef _DOUBLE_IS_32BITS
21 #ifdef __STDC__
22 void sincos(double x, double *sinx, double *cosx)
23 #else
24 void sincos(x, sinx, cosx)
25 double x;
26 double sinx;
27 double cosx;
28 #endif
30 *sinx = sinf((float) x);
31 *cosx = cosf((float) x);
33 #endif /* defined(_DOUBLE_IS_32BITS) */