aboutsummaryrefslogtreecommitdiff
path: root/math/sincosf.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2018-07-04 17:45:15 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-07-04 17:46:48 +0100
commit3262ef2381aba22df5b7e78f568225cc69df74ab (patch)
treec178b17e3ec94a64d19d2043f2c767e69a1bb039 /math/sincosf.c
parentdd178df04fc58d05cc2bd4c92efdb52cbd0d1bad (diff)
downloadarm-optimized-routines-3262ef2381aba22df5b7e78f568225cc69df74ab.tar.gz
Fix namespace issues in sincosf
Use const sincos_t for clarity instead of making the typedef const. Use __inv_pi4 and __sincosf_table to avoid namespace issues with static linking.
Diffstat (limited to 'math/sincosf.c')
-rw-r--r--math/sincosf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/sincosf.c b/math/sincosf.c
index 2363a42..5b13d72 100644
--- a/math/sincosf.c
+++ b/math/sincosf.c
@@ -37,7 +37,7 @@ sincosf (float y, float *sinp, float *cosp)
double x = y;
double s;
int n;
- sincos_t *p = &sincosf_table[0];
+ const sincos_t *p = &__sincosf_table[0];
if (abstop12 (y) < abstop12 (pio4))
{
@@ -63,7 +63,7 @@ sincosf (float y, float *sinp, float *cosp)
s = p->sign[n & 3];
if (n & 2)
- p = &sincosf_table[1];
+ p = &__sincosf_table[1];
sincosf_poly (x * s, x * x, p, n, sinp, cosp);
}
@@ -78,7 +78,7 @@ sincosf (float y, float *sinp, float *cosp)
s = p->sign[(n + sign) & 3];
if ((n + sign) & 2)
- p = &sincosf_table[1];
+ p = &__sincosf_table[1];
sincosf_poly (x * s, x * x, p, n, sinp, cosp);
}