OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libm/] [mathfp/] [sf_log10.c] - Blame information for rev 1767

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
 
2
/* @(#)z_log10f.c 1.0 98/08/13 */
3
/******************************************************************
4
 * Logarithm
5
 *
6
 * Input:
7
 *   x - floating point value
8
 *
9
 * Output:
10
 *   logarithm of x
11
 *
12
 * Description:
13
 *   This routine returns the logarithm of x (base 10).
14
 *
15
 *****************************************************************/
16
 
17
#include "fdlibm.h"
18
#include "zmath.h"
19
 
20
float
21
_DEFUN (log10f, (float),
22
        float x)
23
{
24
  return (logarithmf (x, 1));
25
}
26
 
27
#ifdef _DOUBLE_IS_32BITS
28
 
29
double log10 (double x)
30
{
31
  return (double) log10f ((float) x);
32
}
33
 
34
#endif /* defined(_DOUBLE_IS_32BITS) */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.