]> git.ipfire.org Git - thirdparty/glibc.git/commit - sysdeps/ieee754/dbl-64/s_sin.c
Consolidate code to compute sin and cos from lookup tables
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 20 Dec 2013 10:31:03 +0000 (16:01 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Fri, 20 Dec 2013 10:31:03 +0000 (16:01 +0530)
commit392dd2de03c054b1b32358561570be14f55e9ae9
treec24ce31b2024466541a1f4e9619c681bdba8bf30
parent84ba214c2197586bc80631dd6d6110a3bbaab7bf
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.
ChangeLog
sysdeps/ieee754/dbl-64/s_sin.c