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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-newlib/] [newlib-1.17.0/] [newlib/] [libm/] [mathfp/] [s_sincos.c] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 jlechner
 
2
/* @(#)z_sin.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
#ifndef _DOUBLE_IS_32BITS
21
 
22
void
23
_DEFUN (sincos, (x, sinx, cosx),
24
        double x _AND
25
        double *sinx _AND
26
        double *cosx)
27
{
28
  *sinx = sin (x);
29
  *cosx = cos (x);
30
}
31
 
32
#endif /* _DOUBLE_IS_32BITS */

powered by: WebSVN 2.1.0

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