[PATCH 2/3] Consolidate sin and cos code for 105414350 <|x|< 281474976710656
Joseph Myers
joseph@codesourcery.com
Thu Dec 17 21:10:00 GMT 2015
On Tue, 15 Dec 2015, Siddhesh Poyarekar wrote:
> The sin and cos computation for this range of input is identical
> except for a difference in quadrants by 1. Exploit that fact and the
> common argument reduction to reduce computations for sincos.
>
> Siddhesh
>
> * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
> code to new functions.
> (reduce_sincos_2, do_sincos_2): New functions.
> * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
OK.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list