Add sincosl() function to bionic. So that sincos optimization can
be enabled. Change-Id: I19671a407dc96a92417c719da938ee0c1669bfb8
This commit is contained in:
parent
d5578fb652
commit
9946750609
@ -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).
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user