LibC: Add sincos{,f,l}
This commit is contained in:
parent
c9aafa78ec
commit
8fac88c9a6
|
|
@ -249,6 +249,10 @@ double y0(double);
|
||||||
double y1(double);
|
double y1(double);
|
||||||
double yn(int, double);
|
double yn(int, double);
|
||||||
|
|
||||||
|
void sincos(double x, double *sin, double *cos);
|
||||||
|
void sincosf(float x, float *sin, float *cos);
|
||||||
|
void sincosl(long double x, long double *sin, long double *cos);
|
||||||
|
|
||||||
extern int signgam;
|
extern int signgam;
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
|
||||||
|
|
@ -271,5 +271,17 @@ FUNC_EXPR1(tgamma, tgamma_impl(a))
|
||||||
BAN_FUNC1(trunc)
|
BAN_FUNC1(trunc)
|
||||||
// y0, y1, yn
|
// y0, y1, yn
|
||||||
|
|
||||||
|
void sincos(double x, double* sin, double* cos)
|
||||||
|
{
|
||||||
|
BAN::Math::sincos(x, *sin, *cos);
|
||||||
|
}
|
||||||
|
void sincosf(float x, float* sin, float* cos)
|
||||||
|
{
|
||||||
|
BAN::Math::sincos(x, *sin, *cos);
|
||||||
|
}
|
||||||
|
void sincosl(long double x, long double* sin, long double* cos)
|
||||||
|
{
|
||||||
|
BAN::Math::sincos(x, *sin, *cos);
|
||||||
|
}
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue