Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / mathfp / sf_cosh.c
blobc747e907b6a42d074aeb6d886d255ed24c3981ce
2 /* @(#)z_coshf.c 1.0 98/08/13 */
3 /******************************************************************
4 * Hyperbolic Cosine
6 * Input:
7 * x - floating point value
9 * Output:
10 * hyperbolic cosine of x
12 * Description:
13 * This routine returns the hyperbolic cosine of x.
15 *****************************************************************/
17 #include "fdlibm.h"
18 #include "zmath.h"
20 float
21 coshf (float x)
23 return (sinehf (x, 1));
26 #ifdef _DOUBLE_IS_32BITS
27 double cosh (double x)
29 return (double) sinehf ((float) x, 1);
32 #endif /* defined(_DOUBLE_IS_32BITS) */