mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
d3bd3632ac
* libc/sys/linux/include/cmathcalls.h: New file. * libc/sys/linux/include/complex.h: New file. * libc/sys/linux/machine/i386/huge_val.h: New file * libm/math/w_sincos.c: New file * libm/math/wf_sincos.c: New file * libm/mathfp/s_sincos.c: New file * libm/mathfp/sf_sincos.c: New file * Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in. * libc/include/math.h: Add sincos and sincosf declarations. * libc/sys/linux/Makefile.am (SUBDIRS): Add cmath. (SUBLIBS): Likewise. * libc/sys/linux/configure.in (AC_OUTPUT): Add cmath. * libm/math/Makefile.am (src): Add w_sincos.c. (fsrc): Add wf_sincos.c. * libm/mathfp/Makefile.am (src): Add s_sincos.c (fsrc): Add sf_sincos.c.
40 lines
698 B
C
40 lines
698 B
C
|
|
/* @(#)z_sinf.c 1.0 98/08/13 */
|
|
/******************************************************************
|
|
* Sine
|
|
*
|
|
* Input:
|
|
* x - floating point value
|
|
*
|
|
* Output:
|
|
* sine of x
|
|
*
|
|
* Description:
|
|
* This routine returns the sine of x.
|
|
*
|
|
*****************************************************************/
|
|
|
|
#include "fdlibm.h"
|
|
#include "zmath.h"
|
|
|
|
void
|
|
_DEFUN (sincosf, (x, sinx, cosx),
|
|
float x _AND
|
|
float *sinx _AND
|
|
float *cosx)
|
|
{
|
|
*sinx = sin (x);
|
|
*cosx = cos (x);
|
|
}
|
|
|
|
#ifdef _DOUBLE_IS_32BITS
|
|
|
|
void
|
|
sincos (double x, double *sinx, double *cosx)
|
|
{
|
|
*sinx = (double) sinf ((float) x);
|
|
*cosx = (double) cosf ((float) x);
|
|
}
|
|
|
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|