From patchwork Thu Oct 6 07:41:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 16301 Received: (qmail 28362 invoked by alias); 6 Oct 2016 07:42:12 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28248 invoked by uid 89); 6 Oct 2016 07:42:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.1 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_NEUTRAL autolearn=no version=3.3.2 spammy=ieee754, siddheshsourcewareorg, dbl64, siddhesh@sourceware.org X-HELO: homiemail-a116.g.dreamhost.com From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [COMMITTED] Adjust calls to do_sincos_1 and do_sincos_2 in s_sincos.c Date: Thu, 6 Oct 2016 13:11:38 +0530 Message-Id: <1475739698-15423-3-git-send-email-siddhesh@sourceware.org> In-Reply-To: <1475739698-15423-1-git-send-email-siddhesh@sourceware.org> References: <1475739698-15423-1-git-send-email-siddhesh@sourceware.org> Adjust calls to do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant instead of the numeric 0 and 1. This does not affect codegen. --- ChangeLog | 3 +++ sysdeps/ieee754/dbl-64/s_sincos.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d0cb39c..4a9676f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-10-06 Siddhesh Poyarekar + * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to + do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant. + * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make K boolean and rename it. (__sin): Adjust. diff --git a/sysdeps/ieee754/dbl-64/s_sincos.c b/sysdeps/ieee754/dbl-64/s_sincos.c index c389226..ca44b90 100644 --- a/sysdeps/ieee754/dbl-64/s_sincos.c +++ b/sysdeps/ieee754/dbl-64/s_sincos.c @@ -80,8 +80,8 @@ __sincos (double x, double *sinx, double *cosx) double a, da; int4 n = reduce_sincos_1 (x, &a, &da); - *sinx = do_sincos_1 (a, da, x, n, 0); - *cosx = do_sincos_1 (a, da, x, n, 1); + *sinx = do_sincos_1 (a, da, x, n, false); + *cosx = do_sincos_1 (a, da, x, n, true); return; } @@ -90,8 +90,8 @@ __sincos (double x, double *sinx, double *cosx) double a, da; int4 n = reduce_sincos_2 (x, &a, &da); - *sinx = do_sincos_2 (a, da, x, n, 0); - *cosx = do_sincos_2 (a, da, x, n, 1); + *sinx = do_sincos_2 (a, da, x, n, false); + *cosx = do_sincos_2 (a, da, x, n, true); return; }