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

s_cos.c « mathfp « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f63a404ec4df250a836994e001624f5e568c058 (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

/* @(#)z_cos.c 1.0 98/08/13 */
/******************************************************************
 * Cosine
 *
 * Input:
 *   x - floating point value
 *
 * Output:
 *   cosine of x
 *
 * Description:
 *   This routine returns the cosine of x.
 *
 *****************************************************************/

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

#ifndef _DOUBLE_IS_32BITS

double
_DEFUN (cos, (double),
        double x)
{
  return (sine (x, 1));
}

#endif /* _DOUBLE_IS_32BITS */