mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-14 17:59:28 +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.
23 lines
401 B
C
23 lines
401 B
C
/* sincos -- currently no more efficient than two separate calls to
|
|
sin and cos. */
|
|
|
|
#include "fdlibm.h"
|
|
#include <errno.h>
|
|
|
|
#ifndef _DOUBLE_IS_32BITS
|
|
|
|
#ifdef __STDC__
|
|
void sincos(double x, double *sinx, double *cosx)
|
|
#else
|
|
void sincos(x, sinx, cosx)
|
|
double x;
|
|
double *sinx;
|
|
double *cosx;
|
|
#endif
|
|
{
|
|
*sinx = sin (x);
|
|
*cosx = cos (x);
|
|
}
|
|
|
|
#endif /* defined(_DOUBLE_IS_32BITS) */
|