mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-21 14:22:34 +03:00
9ebd703865
git-svn-id: svn://kolibrios.org@3362 a494cfbc-eb01-0410-851d-a64ba20cac60
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) */
|