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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libm/] [mathfp/] [s_sinf.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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