Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / mathfp / sf_sincos.c
blob472aa712b00b6052c4a51902669b44ac348d57de
2 /* @(#)z_sinf.c 1.0 98/08/13 */
3 /******************************************************************
4 * Sine
6 * Input:
7 * x - floating point value
9 * Output:
10 * sine of x
12 * Description:
13 * This routine returns the sine of x.
15 *****************************************************************/
17 #include "fdlibm.h"
18 #include "zmath.h"
20 void
21 sincosf (float x,
22 float *sinx,
23 float *cosx)
25 *sinx = sin (x);
26 *cosx = cos (x);
29 #ifdef _DOUBLE_IS_32BITS
31 void
32 sincos (double x, double *sinx, double *cosx)
34 *sinx = (double) sinf ((float) x);
35 *cosx = (double) cosf ((float) x);
38 #endif /* defined(_DOUBLE_IS_32BITS) */