diff --git a/userspace/libraries/LibC/include/math.h b/userspace/libraries/LibC/include/math.h index df8d8a12..4a8e416e 100644 --- a/userspace/libraries/LibC/include/math.h +++ b/userspace/libraries/LibC/include/math.h @@ -249,6 +249,10 @@ double y0(double); double y1(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; __END_DECLS diff --git a/userspace/libraries/LibC/math.cpp b/userspace/libraries/LibC/math.cpp index 355039df..8f1e335b 100644 --- a/userspace/libraries/LibC/math.cpp +++ b/userspace/libraries/LibC/math.cpp @@ -271,5 +271,17 @@ FUNC_EXPR1(tgamma, tgamma_impl(a)) BAN_FUNC1(trunc) // 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