Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sf_log10.c « mathfp « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 444e535e0f9b77d9bc9522315894770c091e4aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

/* @(#)z_log10f.c 1.0 98/08/13 */
/******************************************************************
 * Logarithm
 *
 * Input:
 *   x - floating point value
 *
 * Output:
 *   logarithm of x
 *
 * Description:
 *   This routine returns the logarithm of x (base 10).
 *
 *****************************************************************/

#include "fdlibm.h"
#include "zmath.h"

float
_DEFUN (log10f, (float),
        float x)
{
  return (logarithmf (x, 1));
}

#ifdef _DOUBLE_IS_32BITS

double log10 (double x)
{
  return (double) log10f ((float) x);
}

#endif /* defined(_DOUBLE_IS_32BITS) */