Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / mathfp / sf_cos.c
blob34b7dfdabe9e7dc069ccc04be797d96b0eb245b7
2 /* @(#)z_cosf.c 1.0 98/08/13 */
3 /******************************************************************
4 * Cosine
6 * Input:
7 * x - floating point value
9 * Output:
10 * cosine of x
12 * Description:
13 * This routine returns the cosine of x.
15 *****************************************************************/
17 #include "fdlibm.h"
18 #include "zmath.h"
20 float
21 cosf (float x)
23 return (sinef (x, 1));
26 #ifdef _DOUBLE_IS_32BITS
28 double cos (double x)
30 return (double) sinef ((float) x, 1);
33 #endif /* defined(_DOUBLE_IS_32BITS) */