source: trunk/libs/newlib/src/newlib/libm/mathfp/sf_sincos.c @ 543

Last change on this file since 543 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 657 bytes
Line 
1
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
20void
21sincosf (float x,
22        float *sinx,
23        float *cosx)
24{
25  *sinx = sin (x);
26  *cosx = cos (x);
27}
28
29#ifdef _DOUBLE_IS_32BITS
30
31void
32sincos (double x, double *sinx, double *cosx)
33{
34  *sinx = (double) sinf ((float) x);
35  *cosx = (double) cosf ((float) x);
36}
37
38#endif /* defined(_DOUBLE_IS_32BITS) */
Note: See TracBrowser for help on using the repository browser.