1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 #include <math.h>
8
sincos(double __x,double * p_sin,double * p_cos)9 void sincos (double __x, double *p_sin, double *p_cos)
10 {
11 *p_sin = sin(__x);
12 *p_cos = cos(__x);
13 }
14
sincosf(float __x,float * p_sin,float * p_cos)15 void sincosf (float __x, float *p_sin, float *p_cos)
16 {
17 *p_sin = sinf(__x);
18 *p_cos = cosf(__x);
19 }
20
sincosl(long double __x,long double * p_sin,long double * p_cos)21 void sincosl (long double __x, long double *p_sin, long double *p_cos)
22 {
23 #if defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_)
24 *p_sin = sin(__x);
25 *p_cos = cos(__x);
26 #else
27 #error Not supported on your platform yet
28 #endif
29 }
30