From b300455644e2945da05eb49d12d3a037f1408be1 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 21 Dec 2015 10:43:04 +0530 Subject: Consolidate sincos computation for 2.426265 < |x| < 105414350 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. --- ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 2228769d6a..c06799712e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2015-12-21 Siddhesh Poyarekar + * 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. + * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common code to new functions. (reduce_sincos_2, do_sincos_2): New functions. -- cgit v1.2.3-70-g09d2