summaryrefslogtreecommitdiffstats
path: root/libm/sincos.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-02-01 16:32:50 -0800
committerElliott Hughes <enh@google.com>2013-02-01 16:32:50 -0800
commit9b05df325c911f9b86102d4ed9714feda7d0e46f (patch)
treefbe12baf9a7903644d17abac8efc5b7fcf4a34cc /libm/sincos.c
parentae70b9467419c5a9b21e06dc1dba201a112a83be (diff)
downloadbionic-9b05df325c911f9b86102d4ed9714feda7d0e46f.zip
bionic-9b05df325c911f9b86102d4ed9714feda7d0e46f.tar.gz
bionic-9b05df325c911f9b86102d4ed9714feda7d0e46f.tar.bz2
Make sincosl call sinl and cosl.
Bug: 2748728 Change-Id: Id18070963b91b144758c567ad7ac80758e3a638b
Diffstat (limited to 'libm/sincos.c')
-rw-r--r--libm/sincos.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/libm/sincos.c b/libm/sincos.c
index e9f6dcc..891aa31 100644
--- a/libm/sincos.c
+++ b/libm/sincos.c
@@ -35,20 +35,17 @@
// Thus we just enforce -O0 when compiling this file.
#pragma GCC optimize ("O0")
-void sincos(double x, double *psin, double *pcos)
-{
- *psin = sin(x);
- *pcos = cos(x);
+void sincos(double x, double* p_sin, double* p_cos) {
+ *p_sin = sin(x);
+ *p_cos = cos(x);
}
-void sincosf(float x, float *psin, float *pcos)
-{
- *psin = sinf(x);
- *pcos = cosf(x);
+void sincosf(float x, float* p_sinf, float* p_cosf) {
+ *p_sinf = sinf(x);
+ *p_cosf = cosf(x);
}
-void sincosl(long double x, long double *psin, long double *pcos)
-{
- *psin = sin(x);
- *pcos = cos(x);
+void sincosl(long double x, long double* p_sinl, long double* p_cosl) {
+ *p_sinl = sinl(x);
+ *p_cosl = cosl(x);
}