]> sourceware.org Git - glibc.git/commit
Include s_sin.c in s_sincos.c
authorSiddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
Tue, 17 Nov 2015 10:50:20 +0000 (16:20 +0530)
committerSiddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
Tue, 17 Nov 2015 15:41:31 +0000 (21:11 +0530)
commit463ac90dab7b90ba6089c1cadd980b6185d3cceb
tree146ad5bd9881fd472528d5dfd8663ade0ace52c2
parentb7665e51633b98c316f0f8ffccc3278d6b10d14d
Include s_sin.c in s_sincos.c

Include the __sin and __cos functions as local static copies to allow
deper optimization of the functions.  This change shows an improvement
of about 17% in the min case and 12.5% in the mean case for the sincos
microbenchmark on x86_64.

* sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
static and don't set or restore rounding.
(__cos)[IN_SINCOS]: Likewise.
* sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
(__sincos): Set and restore rounding mode.  Remove check for infinite
or NaN input.
ChangeLog
sysdeps/ieee754/dbl-64/s_sin.c
sysdeps/ieee754/dbl-64/s_sincos.c
This page took 0.042944 seconds and 5 git commands to generate.