From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111891 invoked by alias); 27 Sep 2016 17:49:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 111879 invoked by uid 89); 27 Sep 2016 17:49:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL autolearn=no version=3.3.2 spammy=applicable X-HELO: homiemail-a51.g.dreamhost.com From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH 0/4] Use __copysign in sincos wherever possible Date: Tue, 27 Sep 2016 17:49:00 -0000 Message-Id: <1474998553-2366-1-git-send-email-siddhesh@sourceware.org> X-SW-Source: 2016-09/txt/msg00533.txt.bz2 Hi, The following set of patches is another set of cleanups to sin/cos functions and their helpers. The key change is to replace ternary conditions in the code with copysign wherever applicable. This results in improving performance of the SPEC2006 test tonto by 4.5%. Siddhesh Poyarekar (4): consolidate sign checks for slow2 Check n instead of k1 to decide on sign of sin/cos result Use copysign instead of ternary conditions for positive constants Use copysign instead of ternary for some sin/cos input ranges sysdeps/ieee754/dbl-64/s_sin.c | 80 ++++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 39 deletions(-) -- 2.7.4