[PATCH 3/3] Consolidate sincos computation for 2.426265 < |x| < 105414350
Joseph Myers
joseph@codesourcery.com
Thu Dec 17 21:22:00 GMT 2015
On Tue, 15 Dec 2015, Siddhesh Poyarekar wrote:
> Like the previous change, exploit the fact that computation for sin
> and cos is identical except that it is apart by a quadrant. Also
> remove csloww, csloww1 and csloww2 since they can easily be expressed
> in terms of sloww, sloww1 and sloww2.
>
> Siddhesh
>
> * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
> Remove functions.
> (sloww, sloww1): Accept argument to offset quadrant.
> (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
> quadrant.
> (__sin, __cos): Consolidate common code into new functions.
> (reduce_sincos_1, do_sincos_1): 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