OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libm/] [mathfp/] [sf_cosh.c] - Blame information for rev 158

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
 
2
/* @(#)z_coshf.c 1.0 98/08/13 */
3
/******************************************************************
4
 * Hyperbolic Cosine
5
 *
6
 * Input:
7
 *   x - floating point value
8
 *
9
 * Output:
10
 *   hyperbolic cosine of x
11
 *
12
 * Description:
13
 *   This routine returns the hyperbolic cosine of x.
14
 *
15
 *****************************************************************/
16
 
17
#include "fdlibm.h"
18
#include "zmath.h"
19
 
20
float
21
_DEFUN (coshf, (float),
22
        float x)
23
{
24
  return (sinehf (x, 1));
25
}
26
 
27
#ifdef _DOUBLE_IS_32BITS
28
double cosh (double x)
29
{
30
  return (double) sinehf ((float) x, 1);
31
}
32
 
33
#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.