diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2018-07-04 17:45:15 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2018-07-04 17:46:48 +0100 |
commit | 3262ef2381aba22df5b7e78f568225cc69df74ab (patch) | |
tree | c178b17e3ec94a64d19d2043f2c767e69a1bb039 /math/sincosf_data.c | |
parent | dd178df04fc58d05cc2bd4c92efdb52cbd0d1bad (diff) | |
download | arm-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_data.c')
-rw-r--r-- | math/sincosf_data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/math/sincosf_data.c b/math/sincosf_data.c index ee6aeb9..deaed1b 100644 --- a/math/sincosf_data.c +++ b/math/sincosf_data.c @@ -26,7 +26,7 @@ /* The constants and polynomials for sine and cosine. The 2nd entry computes -cos (x) rather than cos (x) to get negation for free. */ -sincos_t sincosf_table[2] = +const sincos_t __sincosf_table[2] = { { { 1.0, -1.0, -1.0, 1.0 }, @@ -66,7 +66,7 @@ sincos_t sincosf_table[2] = /* Table with 4/PI to 192 bit precision. To avoid unaligned accesses only 8 new bits are added per entry, making the table 4 times larger. */ -const uint32_t inv_pio4[24] = +const uint32_t __inv_pio4[24] = { 0xa2, 0xa2f9, 0xa2f983, 0xa2f9836e, 0xf9836e4e, 0x836e4e44, 0x6e4e4415, 0x4e441529, |