Add sincosl() function to bionic. So that sincos optimization can

be enabled.

Change-Id: I19671a407dc96a92417c719da938ee0c1669bfb8
This commit is contained in:
Jing Yu 2010-06-03 14:05:51 -07:00
parent d5578fb652
commit 9946750609
3 changed files with 8 additions and 1 deletions

View File

@ -5,7 +5,7 @@ Differences between current and Android 2.2:
- <pthread.h>: Add reader/writer locks implementation.
- <math.h>: Added sincos() and sincosf() (GLibc compatibility).
- <math.h>: Added sincos(), sincosf() and sincosl() (GLibc compatibility).
- <sys/sysinfo.h>: Added missing sysinfo() system call implementation
(the function was already declared in the header though).

View File

@ -484,6 +484,7 @@ long double truncl(long double);
#ifdef _GNU_SOURCE
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);
#endif
/* #endif */ /* __ISO_C_VISIBLE >= 1999 */

View File

@ -38,3 +38,9 @@ void sincosf(float x, float *psin, float *pcos)
*psin = sinf(x);
*pcos = cosf(x);
}
void sincosl(long double x, long double *psin, long double *pcos)
{
*psin = sin(x);
*pcos = cos(x);
}