Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libm / mathfp / sf_log.c
blobc988f764fceb203bcea53b486aab82ba6044af8f
2 /* @(#)z_logf.c 1.0 98/08/13 */
3 /******************************************************************
4 * Logarithm
6 * Input:
7 * x - floating point value
9 * Output:
10 * natural logarithm of x
12 * Description:
13 * This routine returns the natural logarithm of x.
15 *****************************************************************/
17 #include "fdlibm.h"
18 #include "zmath.h"
20 float
21 logf (float x)
23 return (logarithmf (x, 0));
26 #ifdef _DOUBLE_IS_32BITS
28 double log (double x)
30 return (double) logf ((float) x);
33 #endif /* defined(_DOUBLE_IS_32BITS) */