diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-12-20 16:01:03 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-12-20 16:01:03 +0530 |
commit | 392dd2de03c054b1b32358561570be14f55e9ae9 (patch) | |
tree | c24ce31b2024466541a1f4e9619c681bdba8bf30 /ChangeLog | |
parent | 84ba214c2197586bc80631dd6d6110a3bbaab7bf (diff) | |
download | glibc-392dd2de03c054b1b32358561570be14f55e9ae9.zip glibc-392dd2de03c054b1b32358561570be14f55e9ae9.tar.gz glibc-392dd2de03c054b1b32358561570be14f55e9ae9.tar.bz2 |
Consolidate code to compute sin and cos from lookup tables
This patch consolidates the multiple copies of code that looks up sin
and cos of a number from the lookup table and computes the final
value, into static functions. This does not have a noticeable
performance impact since the functions are inlined by gcc.
There is further scope for consolidation in the functions but they
cause a more noticable impact on performance (>5%) due to which I have
held back on them.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2013-12-20 Siddhesh Poyarekar <siddhesh@redhat.com> + * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin, + do_sin_slow): New functions. + (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, + cslow2, csloww1, csloww2): Use the new functions. + * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M. Use M to change sign of result instead of X. Assume X is positive. |